#CD7BEB#CD7BEB

#CD7BEB is a light, vivid purple. Relative luminance 0.331; OKLCH L 71.3% C 0.177 H 316.4°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#CD7BEB
RGBrgb(205, 123, 235)
HSLhsl(284, 74%, 70%)
HSVhsv(284, 48%, 92%)
CMYKcmyk(12.8%, 47.7%, 0%, 7.8%)
CIE-LABlab(64.28, 50.07, -43.91)
CIE-LCHlch(64.28, 66.60, 318.75°)
OKLaboklab(71.28% 0.128 -0.1218)
OKLCHoklch(71.28% 0.177 316.4)
XYZxyz(47.2530, 33.1446, 82.4896)
Luminance0.3314 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7BEB #99EB7B
analogous
#957BEB #CD7BEB #EB7BD1
triadic
#CD7BEB #EBCD7B #7BEBCD
tetradic
#CD7BEB #EB957B #99EB7B #7BD1EB
square
#CD7BEB #EB957B #99EB7B #7BD1EB
split-complementary
#CD7BEB #D1EB7B #7BEB95
monochromatic
#9E1FCD #B946E3 #CD7BEB #E1B0F3 #F5E4FB

Accessibility & contrast

On white

2.75
#CD7BEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#CD7BEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7BEB
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7BEB#FFFFFF#000000##000000
##CD7BEB1.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6597EF
Deuteranopia (green-blind)
#7D9EE8
Tritanopia (blue-blind)
#CC8BA8
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #cd7beb;
/* rgb */ color: rgb(205, 123, 235);
/* oklch */ color: oklch(71.3% 0.177 316.4);
Tailwind
colors: {
  custom: {
    50: '#dea3f2',
    500: '#cd7beb',
    950: '#000000',
  },
}
SCSS
$custom: #cd7beb;
$custom-light: #dea3f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7beb",
  "rgb": {
    "r": 205,
    "g": 123,
    "b": 235
  },
  "hsl": {
    "h": 283.929,
    "s": 73.684,
    "l": 70.196
  },
  "oklch": {
    "l": 0.71275,
    "c": 0.17674,
    "h": 316.4
  },
  "luminance": 0.33143
}

Semantic roles & 50–950 ramp

primary
#CD7BEB
secondary
#DAF0D1
accent
#D61045
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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