#EC0022

A color in the Red, Pink family

#ec0022 is a color in the Red, Pink family: RGB(236, 0, 34), HSL(351°, 100%, 46%), CMYK(0%, 100%, 86%, 7%). Closest named color: crimson. Contrast is 4.58:1 on white and 4.59:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#ec0022
RGBrgb(236 0 34)
RGB (legacy)rgb(236, 0, 34)
RGB %rgb(93% 0% 13%)
HSLhsl(351 100% 46%)
HSV / HSBhsv(351, 100%, 93%)
HWBhwb(351 0% 7%)
CMYKcmyk(0%, 100%, 86%, 7%)
CIELAB (D50)lab(50.4 76.47 53.76)
LCHlch(50.4 93.47 35.11)
OKLaboklab(0.5937 0.217 0.1054)
OKLCHoklch(0.5937 0.2412 25.9)
Decimal15466530

Properties

Color ToneRed, Pink
Closest named colorcrimson ΔE 3.8
Closest web-safe color#ff0033
Hue351°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)46%
Brightness or Value (HSV)93%
Luminance (Rec.601 / Rec.709)29% / 21%
Relative luminance (WCAG)0.1795
Red / Green / Blue236 / 0 / 34

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.58:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.59:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 68.8 / -32.9 · As background with white / black text: Lc -74.3 / 35.3

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #ec0022;
  --color-brand-oklch: oklch(59.37% 0.2412 25.9);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(236 0 34 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ec0022] text-[#ec0022] border-[#ec0022]">