#EC8AEB

A color in the Purple, Crimson, Magenta family

#ec8aeb is a color in the Purple, Crimson, Magenta family: RGB(236, 138, 235), HSL(301°, 72%, 73%), CMYK(0%, 42%, 0%, 7%). Closest named color: violet. Contrast is 2.23:1 on white and 9.4:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#ec8aeb
RGBrgb(236 138 235)
RGB (legacy)rgb(236, 138, 235)
RGB %rgb(93% 54% 92%)
HSLhsl(301 72% 73%)
HSV / HSBhsv(301, 42%, 93%)
HWBhwb(301 54% 7%)
CMYKcmyk(0%, 42%, 0%, 7%)
CIELAB (D50)lab(70.81 48.47 -33.08)
LCHlch(70.81 58.68 325.69)
OKLaboklab(0.7698 0.1425 -0.091)
OKLCHoklch(0.7698 0.1691 327.42)
Decimal15502059

Properties

Color TonePurple, Crimson, Magenta
Closest named colorviolet ΔE 1.9
Closest web-safe color#ff99ff
Hue301°
Saturation (HSL / HSV)72% / 42%
Lightness (HSL)73%
Brightness or Value (HSV)93%
Luminance (Rec.601 / Rec.709)70% / 65%
Relative luminance (WCAG)0.4201
Red / Green / Blue236 / 138 / 235

WCAG 2.2 Contrast Ratio

On White (#ffffff)
2.23:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
9.40: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 43.7 / -58.5 · As background with white / black text: Lc -48.5 / 60.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: #ec8aeb;
  --color-brand-oklch: oklch(76.98% 0.1691 327.42);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(236 138 235 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ec8aeb] text-[#ec8aeb] border-[#ec8aeb]">