#CD7ED8#CD7ED8

#CD7ED8 is a light, vivid purple. Relative luminance 0.329; OKLCH L 70.8% C 0.152 H 322.5°. Best body text is #000000 at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#CD7ED8
RGBrgb(205, 126, 216)
HSLhsl(293, 54%, 67%)
HSVhsv(293, 42%, 85%)
CMYKcmyk(5.1%, 41.7%, 0%, 15.3%)
CIE-LABlab(64.05, 44.75, -33.71)
CIE-LCHlch(64.05, 56.03, 323.01°)
OKLaboklab(70.83% 0.1206 -0.0925)
OKLCHoklch(70.83% 0.152 322.5)
XYZxyz(45.0310, 32.8604, 68.9231)
Luminance0.3286 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7ED8 #89D87E
analogous
#A07ED8 #CD7ED8 #D87EB6
triadic
#CD7ED8 #D8CD7E #7ED8CD
tetradic
#CD7ED8 #D8A07E #89D87E #7EB6D8
square
#CD7ED8 #D8A07E #89D87E #7EB6D8
split-complementary
#CD7ED8 #B6D87E #7ED8A0
monochromatic
#9A33A9 #BB4FCA #CD7ED8 #DFADE6 #F1DCF4

Accessibility & contrast

On white

2.77
#CD7ED8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.57
#CD7ED8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7ED8
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7ED8#FFFFFF#000000##000000
##CD7ED81.002.777.577.57
#FFFFFF2.771.0021.0021.00
#0000007.5721.001.001.00
##0000007.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7395DB
Deuteranopia (green-blind)
#889ED5
Tritanopia (blue-blind)
#D088A1
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #cd7ed8;
/* rgb */ color: rgb(205, 126, 216);
/* oklch */ color: oklch(70.8% 0.152 322.5);
Tailwind
colors: {
  custom: {
    50: '#dea5e4',
    500: '#cd7ed8',
    950: '#000000',
  },
}
SCSS
$custom: #cd7ed8;
$custom-light: #dea5e4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7ed8",
  "rgb": {
    "r": 205,
    "g": 126,
    "b": 216
  },
  "hsl": {
    "h": 292.667,
    "s": 53.571,
    "l": 67.059
  },
  "oklch": {
    "l": 0.70827,
    "c": 0.15203,
    "h": 322.5
  },
  "luminance": 0.32859
}

Semantic roles & 50–950 ramp

primary
#CD7ED8
secondary
#CEE7CB
accent
#C12438
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#150F15
muted
#837F84

Preview Lab

Preview with #CD7ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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