#CD7AFC#CD7AFC

#CD7AFC is a light, vivid violet. Relative luminance 0.339; OKLCH L 72.0% C 0.196 H 311.9°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#CD7AFC
RGBrgb(205, 122, 252)
HSLhsl(278, 96%, 73%)
HSVhsv(278, 52%, 99%)
CMYKcmyk(18.7%, 51.6%, 0%, 1.2%)
CIE-LABlab(64.91, 54.10, -52.29)
CIE-LCHlch(64.91, 75.24, 315.97°)
OKLaboklab(72.01% 0.1312 -0.1462)
OKLCHoklch(72.01% 0.196 311.9)
XYZxyz(49.7040, 33.9276, 96.0069)
Luminance0.3393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7AFC #A9FC7A
analogous
#8C7AFC #CD7AFC #FC7AEA
triadic
#CD7AFC #FCCD7A #7AFCCD
tetradic
#CD7AFC #FC8C7A #A9FC7A #7AEAFC
square
#CD7AFC #FC8C7A #A9FC7A #7AEAFC
split-complementary
#CD7AFC #EAFC7A #7AFC8C
monochromatic
#9F06F6 #B73EFB #CD7AFC #E3B6FD #F4E1FE

Accessibility & contrast

On white

2.70
#CD7AFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#CD7AFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7AFC
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7AFC#FFFFFF#000000##000000
##CD7AFC1.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5899FF
Deuteranopia (green-blind)
#729FF9
Tritanopia (blue-blind)
#C890B0
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd7afc;
/* rgb */ color: rgb(205, 122, 252);
/* oklch */ color: oklch(72.0% 0.196 311.9);
Tailwind
colors: {
  custom: {
    50: '#dfa3fe',
    500: '#cd7afc',
    950: '#000000',
  },
}
SCSS
$custom: #cd7afc;
$custom-light: #dfa3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7afc",
  "rgb": {
    "r": 205,
    "g": 122,
    "b": 252
  },
  "hsl": {
    "h": 278.308,
    "s": 95.588,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72008,
    "c": 0.19642,
    "h": 311.9
  },
  "luminance": 0.33926
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD7AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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