#CD7BE5#CD7BE5

#CD7BE5 is a light, vivid purple. Relative luminance 0.328; OKLCH L 71.0% C 0.170 H 318.3°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#CD7BE5
RGBrgb(205, 123, 229)
HSLhsl(286, 67%, 69%)
HSVhsv(286, 46%, 90%)
CMYKcmyk(10.5%, 46.3%, 0%, 10.2%)
CIE-LABlab(64.00, 48.87, -41.02)
CIE-LCHlch(64.00, 63.80, 319.99°)
OKLaboklab(70.98% 0.1272 -0.1135)
OKLCHoklch(70.98% 0.17 318.3)
XYZxyz(46.4007, 32.8037, 78.0011)
Luminance0.3280 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7BE5 #93E57B
analogous
#987BE5 #CD7BE5 #E57BC8
triadic
#CD7BE5 #E5CD7B #7BE5CD
tetradic
#CD7BE5 #E5987B #93E57B #7BC8E5
square
#CD7BE5 #E5987B #93E57B #7BC8E5
split-complementary
#CD7BE5 #C8E57B #7BE598
monochromatic
#9D26C0 #BA48DB #CD7BE5 #E0AEEF #F4E1F9

Accessibility & contrast

On white

2.78
#CD7BE5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#CD7BE5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7BE5
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7BE5#FFFFFF#000000##000000
##CD7BE51.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6996E9
Deuteranopia (green-blind)
#809EE2
Tritanopia (blue-blind)
#CD89A5
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #cd7be5;
/* rgb */ color: rgb(205, 123, 229);
/* oklch */ color: oklch(71.0% 0.170 318.3);
Tailwind
colors: {
  custom: {
    50: '#dea3ed',
    500: '#cd7be5',
    950: '#000000',
  },
}
SCSS
$custom: #cd7be5;
$custom-light: #dea3ed;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7be5",
  "rgb": {
    "r": 205,
    "g": 123,
    "b": 229
  },
  "hsl": {
    "h": 286.415,
    "s": 67.089,
    "l": 69.02
  },
  "oklch": {
    "l": 0.70979,
    "c": 0.17044,
    "h": 318.3
  },
  "luminance": 0.32802
}

Semantic roles & 50–950 ramp

primary
#CD7BE5
secondary
#D5EDCE
accent
#CF1740
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CD7BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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