#CD7DF2#CD7DF2

#CD7DF2 is a light, vivid purple. Relative luminance 0.341; OKLCH L 71.9% C 0.181 H 314.2°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#CD7DF2
RGBrgb(205, 125, 242)
HSLhsl(281, 82%, 72%)
HSVhsv(281, 48%, 95%)
CMYKcmyk(15.3%, 48.3%, 0%, 5.1%)
CIE-LABlab(65.01, 50.47, -46.63)
CIE-LCHlch(65.01, 68.71, 317.27°)
OKLaboklab(71.93% 0.1262 -0.1297)
OKLCHoklch(71.93% 0.181 314.2)
XYZxyz(48.5349, 34.0584, 88.0044)
Luminance0.3406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DF2 #A2F27D
analogous
#937DF2 #CD7DF2 #F27DDC
triadic
#CD7DF2 #F2CD7D #7DF2CD
tetradic
#CD7DF2 #F2937D #A2F27D #7DDCF2
square
#CD7DF2 #F2937D #A2F27D #7DDCF2
split-complementary
#CD7DF2 #DCF27D #7DF293
monochromatic
#9F16DE #B845EC #CD7DF2 #E2B5F8 #F4E3FC

Accessibility & contrast

On white

2.69
#CD7DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#CD7DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7DF2
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7DF2#FFFFFF#000000##000000
##CD7DF21.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6499F6
Deuteranopia (green-blind)
#7BA0EF
Tritanopia (blue-blind)
#CA8FAC
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cd7df2;
/* rgb */ color: rgb(205, 125, 242);
/* oklch */ color: oklch(71.9% 0.181 314.2);
Tailwind
colors: {
  custom: {
    50: '#dea5f7',
    500: '#cd7df2',
    950: '#000000',
  },
}
SCSS
$custom: #cd7df2;
$custom-light: #dea5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7df2",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 281.026,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.71925,
    "c": 0.18098,
    "h": 314.2
  },
  "luminance": 0.34057
}

Semantic roles & 50–950 ramp

primary
#CD7DF2
secondary
#E0F4D7
accent
#DE074B
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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