#CD7EFB#CD7EFB

#CD7EFB is a light, vivid violet. Relative luminance 0.349; OKLCH L 72.5% C 0.189 H 311.7°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#CD7EFB
RGBrgb(205, 126, 251)
HSLhsl(278, 94%, 74%)
HSVhsv(278, 50%, 98%)
CMYKcmyk(18.3%, 49.8%, 0%, 1.6%)
CIE-LABlab(65.64, 51.84, -50.57)
CIE-LCHlch(65.64, 72.42, 315.71°)
OKLaboklab(72.54% 0.1259 -0.1412)
OKLCHoklch(72.54% 0.189 311.7)
XYZxyz(50.0472, 34.8669, 95.3416)
Luminance0.3487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7EFB #ACFB7E
analogous
#8F7EFB #CD7EFB #FB7EEB
triadic
#CD7EFB #FBCD7E #7EFBCD
tetradic
#CD7EFB #FB8F7E #ACFB7E #7EEBFB
square
#CD7EFB #FB8F7E #ACFB7E #7EEBFB
split-complementary
#CD7EFB #EBFB7E #7EFB8F
monochromatic
#9F08F7 #B643F9 #CD7EFB #E4B9FD #F3E1FE

Accessibility & contrast

On white

2.63
#CD7EFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#CD7EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7EFB
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7EFB#FFFFFF#000000##000000
##CD7EFB1.002.637.977.97
#FFFFFF2.631.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd7efb;
/* rgb */ color: rgb(205, 126, 251);
/* oklch */ color: oklch(72.5% 0.189 311.7);
Tailwind
colors: {
  custom: {
    50: '#dfa6fd',
    500: '#cd7efb',
    950: '#000000',
  },
}
SCSS
$custom: #cd7efb;
$custom-light: #dfa6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7efb",
  "rgb": {
    "r": 205,
    "g": 126,
    "b": 251
  },
  "hsl": {
    "h": 277.92,
    "s": 93.985,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72539,
    "c": 0.18915,
    "h": 311.7
  },
  "luminance": 0.34866
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD7EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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