#CD7FEB#CD7FEB

#CD7FEB is a light, vivid purple. Relative luminance 0.342; OKLCH L 71.9% C 0.170 H 316.0°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#CD7FEB
RGBrgb(205, 127, 235)
HSLhsl(283, 73%, 71%)
HSVhsv(283, 46%, 92%)
CMYKcmyk(12.8%, 46%, 0%, 7.8%)
CIE-LABlab(65.09, 47.99, -42.64)
CIE-LCHlch(65.09, 64.20, 318.38°)
OKLaboklab(71.88% 0.1225 -0.1182)
OKLCHoklch(71.88% 0.17 316)
XYZxyz(47.7593, 34.1574, 82.6583)
Luminance0.3416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7FEB #9DEB7F
analogous
#977FEB #CD7FEB #EB7FD3
triadic
#CD7FEB #EBCD7F #7FEBCD
tetradic
#CD7FEB #EB977F #9DEB7F #7FD3EB
square
#CD7FEB #EB977F #9DEB7F #7FD3EB
split-complementary
#CD7FEB #D3EB7F #7FEB97
monochromatic
#9F20CF #B84AE3 #CD7FEB #E2B4F3 #F5E5FB

Accessibility & contrast

On white

2.68
#CD7FEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#CD7FEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7FEB
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7FEB#FFFFFF#000000##000000
##CD7FEB1.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B99EF
Deuteranopia (green-blind)
#80A0E8
Tritanopia (blue-blind)
#CC8EAA
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cd7feb;
/* rgb */ color: rgb(205, 127, 235);
/* oklch */ color: oklch(71.9% 0.170 316.0);
Tailwind
colors: {
  custom: {
    50: '#dea6f2',
    500: '#cd7feb',
    950: '#000000',
  },
}
SCSS
$custom: #cd7feb;
$custom-light: #dea6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7feb",
  "rgb": {
    "r": 205,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 283.333,
    "s": 72.973,
    "l": 70.98
  },
  "oklch": {
    "l": 0.71877,
    "c": 0.17024,
    "h": 316
  },
  "luminance": 0.34156
}

Semantic roles & 50–950 ramp

primary
#CD7FEB
secondary
#DDF1D5
accent
#D51047
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7FEB

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CD7FEB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva