#CD7AFB#CD7AFB

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

Color values

HEX#CD7AFB
RGBrgb(205, 122, 251)
HSLhsl(279, 94%, 73%)
HSVhsv(279, 51%, 98%)
CMYKcmyk(18.3%, 51.4%, 0%, 1.6%)
CIE-LABlab(64.85, 53.89, -51.82)
CIE-LCHlch(64.85, 74.76, 316.12°)
OKLaboklab(71.96% 0.1311 -0.1448)
OKLCHoklch(71.96% 0.195 312.2)
XYZxyz(49.5459, 33.8643, 95.1745)
Luminance0.3386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7AFB #A8FB7A
analogous
#8C7AFB #CD7AFB #FB7AE8
triadic
#CD7AFB #FBCD7A #7AFBCD
tetradic
#CD7AFB #FB8C7A #A8FB7A #7AE8FB
square
#CD7AFB #FB8C7A #A8FB7A #7AE8FB
split-complementary
#CD7AFB #E8FB7A #7AFB8C
monochromatic
#9F07F3 #B73FF9 #CD7AFB #E3B5FD #F4E1FE

Accessibility & contrast

On white

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

On black

7.77
#CD7AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7AFB
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7AFB#FFFFFF#000000##000000
##CD7AFB1.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5999FF
Deuteranopia (green-blind)
#739FF8
Tritanopia (blue-blind)
#C88FAF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd7afb;
/* rgb */ color: rgb(205, 122, 251);
/* oklch */ color: oklch(72.0% 0.195 312.2);
Tailwind
colors: {
  custom: {
    50: '#dfa3fd',
    500: '#cd7afb',
    950: '#000000',
  },
}
SCSS
$custom: #cd7afb;
$custom-light: #dfa3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7afb",
  "rgb": {
    "r": 205,
    "g": 122,
    "b": 251
  },
  "hsl": {
    "h": 278.605,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.71955,
    "c": 0.19535,
    "h": 312.2
  },
  "luminance": 0.33863
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD7AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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