#CD51EC

A color in the Purple, Crimson, Magenta family

#cd51ec is a color in the Purple, Crimson, Magenta family: RGB(205, 81, 236), HSL(288°, 80%, 62%), CMYK(13%, 66%, 0%, 7%). Closest named color: mediumorchid. Contrast is 3.51:1 on white and 5.98:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#cd51ec
RGBrgb(205 81 236)
RGB (legacy)rgb(205, 81, 236)
RGB %rgb(80% 32% 93%)
HSLhsl(288 80% 62%)
HSV / HSBhsv(288, 66%, 93%)
HWBhwb(288 32% 7%)
CMYKcmyk(13%, 66%, 0%, 7%)
CIELAB (D50)lab(56.65 65.23 -56.12)
LCHlch(56.65 86.05 319.29)
OKLaboklab(0.6597 0.1801 -0.1568)
OKLCHoklch(0.6597 0.2388 318.97)
Decimal13455852

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumorchid ΔE 5
Closest web-safe color#cc66ff
Hue288°
Saturation (HSL / HSV)80% / 66%
Lightness (HSL)62%
Brightness or Value (HSV)93%
Luminance (Rec.601 / Rec.709)53% / 46%
Relative luminance (WCAG)0.2492
Red / Green / Blue205 / 81 / 236

WCAG 2.2 Contrast Ratio

On White (#ffffff)
3.51:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
5.98: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 61.8 / -39.9 · As background with white / black text: Lc -67.3 / 42.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: #cd51ec;
  --color-brand-oklch: oklch(65.97% 0.2388 318.97);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(205 81 236 / 50%); }
/* Tailwind CSS */
<div class="bg-[#cd51ec] text-[#cd51ec] border-[#cd51ec]">