#EC79F6

A color in the Purple, Crimson, Magenta family

#ec79f6 is a color in the Purple, Crimson, Magenta family: RGB(236, 121, 246), HSL(295°, 87%, 72%), CMYK(4%, 51%, 0%, 4%). Closest named color: violet. Contrast is 2.43:1 on white and 8.63:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#ec79f6
RGBrgb(236 121 246)
RGB (legacy)rgb(236, 121, 246)
RGB %rgb(93% 47% 96%)
HSLhsl(295 87% 72%)
HSV / HSBhsv(295, 51%, 96%)
HWBhwb(295 47% 4%)
CMYKcmyk(4%, 51%, 0%, 4%)
CIELAB (D50)lab(67.99 57.91 -43.47)
LCHlch(67.99 72.41 323.11)
OKLaboklab(0.751 0.1676 -0.1204)
OKLCHoklch(0.751 0.2063 324.3)
Decimal15497718

Properties

Color TonePurple, Crimson, Magenta
Closest named colorviolet ΔE 2.5
Closest web-safe color#ff66ff
Hue295°
Saturation (HSL / HSV)87% / 51%
Lightness (HSL)72%
Brightness or Value (HSV)96%
Luminance (Rec.601 / Rec.709)67% / 61%
Relative luminance (WCAG)0.3816
Red / Green / Blue236 / 121 / 246

WCAG 2.2 Contrast Ratio

On White (#ffffff)
2.43:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
8.63:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 47.4 / -54.6 · As background with white / black text: Lc -52.4 / 56.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: #ec79f6;
  --color-brand-oklch: oklch(75.1% 0.2063 324.3);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(236 121 246 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ec79f6] text-[#ec79f6] border-[#ec79f6]">