#EC0040

A color in the Red, Pink family

#ec0040 is a color in the Red, Pink family: RGB(236, 0, 64), HSL(344°, 100%, 46%), CMYK(0%, 100%, 73%, 7%). Closest named color: crimson. Contrast is 4.53:1 on white and 4.64:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#ec0040
RGBrgb(236 0 64)
RGB (legacy)rgb(236, 0, 64)
RGB %rgb(93% 0% 25%)
HSLhsl(344 100% 46%)
HSV / HSBhsv(344, 100%, 93%)
HWBhwb(344 0% 7%)
CMYKcmyk(0%, 100%, 73%, 7%)
CIELAB (D50)lab(50.66 77.03 37.27)
LCHlch(50.66 85.58 25.82)
OKLaboklab(0.5969 0.2259 0.0797)
OKLCHoklch(0.5969 0.2395 19.43)
Decimal15466560

Properties

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

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.53:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.64: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.5 / -33.1 · As background with white / black text: Lc -74 / 35.6

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: #ec0040;
  --color-brand-oklch: oklch(59.69% 0.2395 19.43);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(236 0 64 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ec0040] text-[#ec0040] border-[#ec0040]">