#CD7DFF#CD7DFF

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

Color values

HEX#CD7DFF
RGBrgb(205, 125, 255)
HSLhsl(277, 100%, 75%)
HSVhsv(277, 51%, 100%)
CMYKcmyk(19.6%, 51%, 0%, 0%)
CIE-LABlab(65.65, 53.20, -52.76)
CIE-LCHlch(65.65, 74.93, 315.24°)
OKLaboklab(72.6% 0.1276 -0.1475)
OKLCHoklch(72.6% 0.195 310.8)
XYZxyz(50.5572, 34.8673, 98.6551)
Luminance0.3487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DFF #AFFF7D
analogous
#8C7DFF #CD7DFF #FF7DF0
triadic
#CD7DFF #FFCD7D #7DFFCD
tetradic
#CD7DFF #FF8C7D #AFFF7D #7DF0FF
square
#CD7DFF #FF8C7D #AFFF7D #7DF0FF
split-complementary
#CD7DFF #F0FF7D #7DFF8C
monochromatic
#9E03FF #B540FF #CD7DFF #E5BAFF #F3E0FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD7DFF#FFFFFF#000000##000000
##CD7DFF1.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)
#5B9CFF
Deuteranopia (green-blind)
#73A1FC
Tritanopia (blue-blind)
#C793B3
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd7dff;
/* rgb */ color: rgb(205, 125, 255);
/* oklch */ color: oklch(72.6% 0.195 310.8);
Tailwind
colors: {
  custom: {
    50: '#dfa5ff',
    500: '#cd7dff',
    950: '#000000',
  },
}
SCSS
$custom: #cd7dff;
$custom-light: #dfa5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7dff",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 255
  },
  "hsl": {
    "h": 276.923,
    "s": 100,
    "l": 74.51
  },
  "oklch": {
    "l": 0.72604,
    "c": 0.19505,
    "h": 310.8
  },
  "luminance": 0.34866
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD7DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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