#CD7DFB#CD7DFB

#CD7DFB is a light, vivid violet. Relative luminance 0.346; OKLCH L 72.4% C 0.191 H 311.8°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#CD7DFB
RGBrgb(205, 125, 251)
HSLhsl(278, 94%, 74%)
HSVhsv(278, 50%, 98%)
CMYKcmyk(18.3%, 50.2%, 0%, 1.6%)
CIE-LABlab(65.45, 52.35, -50.89)
CIE-LCHlch(65.45, 73.01, 315.81°)
OKLaboklab(72.39% 0.1272 -0.1421)
OKLCHoklch(72.39% 0.191 311.8)
XYZxyz(49.9200, 34.6125, 95.2992)
Luminance0.3461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DFB #ABFB7D
analogous
#8E7DFB #CD7DFB #FB7DEA
triadic
#CD7DFB #FBCD7D #7DFBCD
tetradic
#CD7DFB #FB8E7D #ABFB7D #7DEAFB
square
#CD7DFB #FB8E7D #ABFB7D #7DEAFB
split-complementary
#CD7DFB #EAFB7D #7DFB8E
monochromatic
#9F08F6 #B642F9 #CD7DFB #E4B8FD #F4E1FE

Accessibility & contrast

On white

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

On black

7.92
#CD7DFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7DFB
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7DFB#FFFFFF#000000##000000
##CD7DFB1.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9BFF
Deuteranopia (green-blind)
#76A1F8
Tritanopia (blue-blind)
#C892B1
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd7dfb;
/* rgb */ color: rgb(205, 125, 251);
/* oklch */ color: oklch(72.4% 0.191 311.8);
Tailwind
colors: {
  custom: {
    50: '#dfa5fd',
    500: '#cd7dfb',
    950: '#000000',
  },
}
SCSS
$custom: #cd7dfb;
$custom-light: #dfa5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7dfb",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 251
  },
  "hsl": {
    "h": 278.095,
    "s": 94.03,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72392,
    "c": 0.19071,
    "h": 311.8
  },
  "luminance": 0.34611
}

Semantic roles & 50–950 ramp

primary
#CD7DFB
secondary
#E1F6D5
accent
#E60054
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CD7DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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