#CD7CFB#CD7CFB

#CD7CFB is a light, vivid violet. Relative luminance 0.344; OKLCH L 72.2% C 0.192 H 311.9°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#CD7CFB
RGBrgb(205, 124, 251)
HSLhsl(278, 94%, 74%)
HSVhsv(278, 51%, 98%)
CMYKcmyk(18.3%, 50.6%, 0%, 1.6%)
CIE-LABlab(65.25, 52.87, -51.20)
CIE-LCHlch(65.25, 73.60, 315.92°)
OKLaboklab(72.25% 0.1285 -0.143)
OKLCHoklch(72.25% 0.192 311.9)
XYZxyz(49.7940, 34.3605, 95.2572)
Luminance0.3436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7CFB #AAFB7C
analogous
#8D7CFB #CD7CFB #FB7CE9
triadic
#CD7CFB #FBCD7C #7CFBCD
tetradic
#CD7CFB #FB8D7C #AAFB7C #7CE9FB
square
#CD7CFB #FB8D7C #AAFB7C #7CE9FB
split-complementary
#CD7CFB #E9FB7C #7CFB8D
monochromatic
#9F07F5 #B641F9 #CD7CFB #E4B7FD #F4E1FE

Accessibility & contrast

On white

2.67
#CD7CFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#CD7CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7CFB
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7CFB#FFFFFF#000000##000000
##CD7CFB1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9AFF
Deuteranopia (green-blind)
#75A0F8
Tritanopia (blue-blind)
#C891B0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cd7cfb;
/* rgb */ color: rgb(205, 124, 251);
/* oklch */ color: oklch(72.2% 0.192 311.9);
Tailwind
colors: {
  custom: {
    50: '#dfa4fd',
    500: '#cd7cfb',
    950: '#000000',
  },
}
SCSS
$custom: #cd7cfb;
$custom-light: #dfa4fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7cfb",
  "rgb": {
    "r": 205,
    "g": 124,
    "b": 251
  },
  "hsl": {
    "h": 278.268,
    "s": 94.074,
    "l": 73.529
  },
  "oklch": {
    "l": 0.72245,
    "c": 0.19225,
    "h": 311.9
  },
  "luminance": 0.34359
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD7CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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