#CD87F2

A color in the Purple, Crimson, Magenta family

#cd87f2 is a color in the Purple, Crimson, Magenta family: RGB(205, 135, 242), HSL(279°, 80%, 74%), CMYK(15%, 44%, 0%, 5%). Closest named color: violet. Contrast is 2.52:1 on white and 8.34:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#cd87f2
RGBrgb(205 135 242)
RGB (legacy)rgb(205, 135, 242)
RGB %rgb(80% 53% 95%)
HSLhsl(279 80% 74%)
HSV / HSBhsv(279, 44%, 95%)
HWBhwb(279 53% 5%)
CMYKcmyk(15%, 44%, 0%, 5%)
CIELAB (D50)lab(66.77 41.27 -43.51)
LCHlch(66.77 59.97 313.49)
OKLaboklab(0.7346 0.1125 -0.1204)
OKLCHoklch(0.7346 0.1648 313.06)
Decimal13469682

Properties

Color TonePurple, Crimson, Magenta
Closest named colorviolet ΔE 5.5
Closest web-safe color#cc99ff
Hue279°
Saturation (HSL / HSV)80% / 44%
Lightness (HSL)74%
Brightness or Value (HSV)95%
Luminance (Rec.601 / Rec.709)66% / 62%
Relative luminance (WCAG)0.3672
Red / Green / Blue205 / 135 / 242

WCAG 2.2 Contrast Ratio

On White (#ffffff)
2.52:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
8.34: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 49.1 / -52.8 · As background with white / black text: Lc -54.2 / 54.9

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: #cd87f2;
  --color-brand-oklch: oklch(73.46% 0.1648 313.06);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(205 135 242 / 50%); }
/* Tailwind CSS */
<div class="bg-[#cd87f2] text-[#cd87f2] border-[#cd87f2]">