#CD7AFE#CD7AFE

#CD7AFE is a light, vivid violet. Relative luminance 0.341; OKLCH L 72.1% C 0.199 H 311.4°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#CD7AFE
RGBrgb(205, 122, 254)
HSLhsl(278, 99%, 74%)
HSVhsv(278, 52%, 100%)
CMYKcmyk(19.3%, 52%, 0%, 0.4%)
CIE-LABlab(65.01, 54.52, -53.23)
CIE-LCHlch(65.01, 76.20, 315.69°)
OKLaboklab(72.12% 0.1314 -0.1489)
OKLCHoklch(72.12% 0.199 311.4)
XYZxyz(50.0225, 34.0550, 97.6849)
Luminance0.3405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7AFE #ABFE7A
analogous
#8B7AFE #CD7AFE #FE7AED
triadic
#CD7AFE #FECD7A #7AFECD
tetradic
#CD7AFE #FE8B7A #ABFE7A #7AEDFE
square
#CD7AFE #FE8B7A #ABFE7A #7AEDFE
split-complementary
#CD7AFE #EDFE7A #7AFE8B
monochromatic
#9F02FC #B63DFE #CD7AFE #E4B7FE #F4E1FF

Accessibility & contrast

On white

2.69
#CD7AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#CD7AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7AFE
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7AFE#FFFFFF#000000##000000
##CD7AFE1.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#579AFF
Deuteranopia (green-blind)
#719FFB
Tritanopia (blue-blind)
#C890B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cd7afe;
/* rgb */ color: rgb(205, 122, 254);
/* oklch */ color: oklch(72.1% 0.199 311.4);
Tailwind
colors: {
  custom: {
    50: '#dfa3ff',
    500: '#cd7afe',
    950: '#000000',
  },
}
SCSS
$custom: #cd7afe;
$custom-light: #dfa3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7afe",
  "rgb": {
    "r": 205,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 277.727,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72116,
    "c": 0.19857,
    "h": 311.4
  },
  "luminance": 0.34054
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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