#CD7DFC#CD7DFC

#CD7DFC is a light, vivid violet. Relative luminance 0.347; OKLCH L 72.4% C 0.192 H 311.6°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#CD7DFC
RGBrgb(205, 125, 252)
HSLhsl(278, 95%, 74%)
HSVhsv(278, 50%, 99%)
CMYKcmyk(18.7%, 50.4%, 0%, 1.2%)
CIE-LABlab(65.50, 52.56, -51.36)
CIE-LCHlch(65.50, 73.49, 315.67°)
OKLaboklab(72.44% 0.1273 -0.1434)
OKLCHoklch(72.44% 0.192 311.6)
XYZxyz(50.0780, 34.6757, 96.1316)
Luminance0.3468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DFC #ACFC7D
analogous
#8E7DFC #CD7DFC #FC7DEC
triadic
#CD7DFC #FCCD7D #7DFCCD
tetradic
#CD7DFC #FC8E7D #ACFC7D #7DECFC
square
#CD7DFC #FC8E7D #ACFC7D #7DECFC
split-complementary
#CD7DFC #ECFC7D #7DFC8E
monochromatic
#9F06F9 #B641FB #CD7DFC #E4B9FD #F3E1FE

Accessibility & contrast

On white

2.65
#CD7DFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.94
#CD7DFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7DFC
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7DFC#FFFFFF#000000##000000
##CD7DFC1.002.657.947.94
#FFFFFF2.651.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9BFF
Deuteranopia (green-blind)
#75A1F9
Tritanopia (blue-blind)
#C892B1
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd7dfc;
/* rgb */ color: rgb(205, 125, 252);
/* oklch */ color: oklch(72.4% 0.192 311.6);
Tailwind
colors: {
  custom: {
    50: '#dfa5fe',
    500: '#cd7dfc',
    950: '#000000',
  },
}
SCSS
$custom: #cd7dfc;
$custom-light: #dfa5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7dfc",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 252
  },
  "hsl": {
    "h": 277.795,
    "s": 95.489,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72444,
    "c": 0.19179,
    "h": 311.6
  },
  "luminance": 0.34675
}

Semantic roles & 50–950 ramp

primary
#CD7DFC
secondary
#E1F7D4
accent
#E60055
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CD7DFC

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

Preview Lab → · Contrast checker → · Palette generator →

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