# Red Color Code: #FF0000 Hex, RGB & Palettes

The CSS red reference is #FF0000, rgb(255, 0, 0), or hsl(0, 100%, 50%). Brand shades may differ. HEX and RGB encode the same sRGB reference; HSL is rounded to two decimals. These are screen values, not a CMYK print specification.

## Tints and shades

Illustrative mixes with white or black in encoded sRGB channels, not a perceptually uniform scale.

| Shade | HEX | RGB | HSL | Black text contrast | White text contrast |
| --- | --- | --- | --- | --- | --- |
| Tint 80% | #FFCCCC | rgb(255, 204, 204) | hsl(0, 100%, 90%) | 14.76:1 | 1.42:1 |
| Tint 40% | #FF6666 | rgb(255, 102, 102) | hsl(0, 100%, 70%) | 7.34:1 | 2.86:1 |
| Reference | #FF0000 | rgb(255, 0, 0) | hsl(0, 100%, 50%) | 5.25:1 | 4.00:1 |
| Shade 25% | #BF0000 | rgb(191, 0, 0) | hsl(0, 100%, 37.45%) | 3.22:1 | 6.53:1 |
| Shade 50% | #800000 | rgb(128, 0, 0) | hsl(0, 100%, 25.1%) | 1.92:1 | 10.95:1 |

## Text contrast

AA ordinary text requires at least 4.5:1; large text requires at least 3:1. Large text is at least 18pt, or 14pt bold. Use unrounded ratios for decisions. Color pairs alone cannot certify accessibility; review criteria, states, context, and exceptions.

White text on pure red misses the ordinary-text AA threshold. Choose a darker action shade for a white label, or use dark text on a light red surface.

## How to use red in product design

Use red for a deliberately prominent state, such as a destructive action or a failed payment. Reserve that role consistently so a decorative red chart series does not compete with an error message.

### A UI example to try

A destructive action needs an explicit verb and a clear consequence. Show “Delete project” with a confirmation when appropriate; a red fill alone cannot explain what will happen.

### Work through a real screen

Review a failed-payment message with the amount, reason, and recovery action visible. Keep red attached to the failure rather than spreading it across every button and divider. The user should understand the issue even when the hue is not distinguishable. A destructive action and a payment failure can share a color family while needing different copy and interaction rules.

### Compare nearby colors by purpose

Compare red with coral and pink by role, not only by appearance. A softer coral may suit a brand accent but weaken the intended status distinction. Keep the error role documented separately from decorative brand use, and review both when changing the palette.

1. Choose a foreground, surface, accent, or status role and name a semantic token after its purpose.
2. Test the actual pair, text size, interaction states, and themes.
3. Document the approved value and companion colors. Keep labels and non-color cues for states.

## CSS palette

Illustrative numeric tokens; connect tested pairs to semantic roles.

```css
:root {
  --red-100: #FFCCCC;
  --red-300: #FF6666;
  --red-500: #FF0000;
  --red-700: #BF0000;
  --red-900: #800000;
}
```

## What is the HEX code for red?

The CSS named color red is #FF0000. Use a documented brand token when you mean another shade.

## Is red accessible?

A color alone cannot pass or fail accessibility. Evaluate the pair, content size, interaction state, and meaning in the complete interface.

## Related colors

- [coral color codes](https://designproject.io/resources/colors/coral/)

- [orange color codes](https://designproject.io/resources/colors/orange/)

- [pink color codes](https://designproject.io/resources/colors/pink/)

## Sources and next steps

By The Design Project. UI examples and generated scales are illustrative.

- [MDN CSS named colors](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/named-color)
- [W3C contrast guidance](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html)
- [UI color palette guide](https://designproject.io/resources/guides/create-ui-color-palette/)
- [Semantic color tokens](https://designproject.io/resources/guides/create-semantic-color-tokens/)
- [Color contrast checker](https://designproject.io/resources/guides/check-color-contrast/)
- [Design glossary](https://designproject.io/resources/glossary/)

Canonical: https://designproject.io/resources/colors/red/

## Keep learning

- [How to create a UI color palette, step by step](https://designproject.io/resources/guides/create-ui-color-palette/)
- [Product design glossary: 44 terms explained](https://designproject.io/resources/glossary/)
- [How to create semantic color tokens for UI](https://designproject.io/resources/guides/create-semantic-color-tokens/)
