#CD7AFF#CD7AFF

#CD7AFF is a light, vivid violet. Relative luminance 0.341; OKLCH L 72.2% C 0.200 H 311.2°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#CD7AFF
RGBrgb(205, 122, 255)
HSLhsl(277, 100%, 74%)
HSVhsv(277, 52%, 100%)
CMYKcmyk(19.6%, 52.2%, 0%, 0%)
CIE-LABlab(65.06, 54.74, -53.70)
CIE-LCHlch(65.06, 76.68, 315.55°)
OKLaboklab(72.17% 0.1315 -0.1502)
OKLCHoklch(72.17% 0.2 311.2)
XYZxyz(50.1831, 34.1192, 98.5304)
Luminance0.3412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7AFF #ACFF7A
analogous
#8B7AFF #CD7AFF #FF7AEE
triadic
#CD7AFF #FFCD7A #7AFFCD
tetradic
#CD7AFF #FF8B7A #ACFF7A #7AEEFF
square
#CD7AFF #FF8B7A #ACFF7A #7AEEFF
split-complementary
#CD7AFF #EEFF7A #7AFF8B
monochromatic
#9F00FF #B63DFF #CD7AFF #E4B7FF #F3E0FF

Accessibility & contrast

On white

2.68
#CD7AFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#CD7AFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7AFF
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7AFF#FFFFFF#000000##000000
##CD7AFF1.002.687.827.82
#FFFFFF2.681.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#569AFF
Deuteranopia (green-blind)
#71A0FC
Tritanopia (blue-blind)
#C790B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cd7aff;
/* rgb */ color: rgb(205, 122, 255);
/* oklch */ color: oklch(72.2% 0.200 311.2);
Tailwind
colors: {
  custom: {
    50: '#dfa3ff',
    500: '#cd7aff',
    950: '#000000',
  },
}
SCSS
$custom: #cd7aff;
$custom-light: #dfa3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7aff",
  "rgb": {
    "r": 205,
    "g": 122,
    "b": 255
  },
  "hsl": {
    "h": 277.444,
    "s": 100,
    "l": 73.922
  },
  "oklch": {
    "l": 0.7217,
    "c": 0.19964,
    "h": 311.2
  },
  "luminance": 0.34118
}

Semantic roles & 50–950 ramp

primary
#CD7AFF
secondary
#E1F7D4
accent
#E60056
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#150F18
muted
#847F86

Preview Lab

Preview with #CD7AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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