#CD7BEF#CD7BEF

#CD7BEF is a light, vivid purple. Relative luminance 0.334; OKLCH L 71.5% C 0.181 H 315.3°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#CD7BEF
RGBrgb(205, 123, 239)
HSLhsl(282, 78%, 71%)
HSVhsv(282, 49%, 94%)
CMYKcmyk(14.2%, 48.5%, 0%, 6.3%)
CIE-LABlab(64.47, 50.89, -45.83)
CIE-LCHlch(64.47, 68.48, 317.99°)
OKLaboklab(71.48% 0.1285 -0.1274)
OKLCHoklch(71.48% 0.181 315.3)
XYZxyz(47.8374, 33.3784, 85.5673)
Luminance0.3338 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7BEF #9DEF7B
analogous
#937BEF #CD7BEF #EF7BD7
triadic
#CD7BEF #EFCD7B #7BEFCD
tetradic
#CD7BEF #EF937B #9DEF7B #7BD7EF
square
#CD7BEF #EF937B #9DEF7B #7BD7EF
split-complementary
#CD7BEF #D7EF7B #7BEF93
monochromatic
#9F1AD6 #B844E8 #CD7BEF #E2B2F6 #F5E4FC

Accessibility & contrast

On white

2.74
#CD7BEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#CD7BEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7BEF
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7BEF#FFFFFF#000000##000000
##CD7BEF1.002.747.687.68
#FFFFFF2.741.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6397F3
Deuteranopia (green-blind)
#7B9FEC
Tritanopia (blue-blind)
#CB8CAA
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #cd7bef;
/* rgb */ color: rgb(205, 123, 239);
/* oklch */ color: oklch(71.5% 0.181 315.3);
Tailwind
colors: {
  custom: {
    50: '#dea3f4',
    500: '#cd7bef',
    950: '#000000',
  },
}
SCSS
$custom: #cd7bef;
$custom-light: #dea3f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7bef",
  "rgb": {
    "r": 205,
    "g": 123,
    "b": 239
  },
  "hsl": {
    "h": 282.414,
    "s": 78.378,
    "l": 70.98
  },
  "oklch": {
    "l": 0.71476,
    "c": 0.18097,
    "h": 315.3
  },
  "luminance": 0.33377
}

Semantic roles & 50–950 ramp

primary
#CD7BEF
secondary
#DDF2D3
accent
#DB0B48
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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