#CD7AFA#CD7AFA

#CD7AFA is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.9% C 0.194 H 312.4°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#CD7AFA
RGBrgb(205, 122, 250)
HSLhsl(279, 93%, 73%)
HSVhsv(279, 51%, 98%)
CMYKcmyk(18%, 51.2%, 0%, 2%)
CIE-LABlab(64.80, 53.68, -51.35)
CIE-LCHlch(64.80, 74.29, 316.27°)
OKLaboklab(71.9% 0.131 -0.1434)
OKLCHoklch(71.9% 0.194 312.4)
XYZxyz(49.3887, 33.8015, 94.3466)
Luminance0.3380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7AFA #A7FA7A
analogous
#8D7AFA #CD7AFA #FA7AE7
triadic
#CD7AFA #FACD7A #7AFACD
tetradic
#CD7AFA #FA8D7A #A7FA7A #7AE7FA
square
#CD7AFA #FA8D7A #A7FA7A #7AE7FA
split-complementary
#CD7AFA #E7FA7A #7AFA8D
monochromatic
#9F09F1 #B73FF8 #CD7AFA #E3B5FC #F4E2FE

Accessibility & contrast

On white

2.71
#CD7AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#CD7AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7AFA
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7AFA#FFFFFF#000000##000000
##CD7AFA1.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A99FE
Deuteranopia (green-blind)
#749FF7
Tritanopia (blue-blind)
#C88FAF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd7afa;
/* rgb */ color: rgb(205, 122, 250);
/* oklch */ color: oklch(71.9% 0.194 312.4);
Tailwind
colors: {
  custom: {
    50: '#dfa3fc',
    500: '#cd7afa',
    950: '#000000',
  },
}
SCSS
$custom: #cd7afa;
$custom-light: #dfa3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7afa",
  "rgb": {
    "r": 205,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 278.906,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.71901,
    "c": 0.19428,
    "h": 312.4
  },
  "luminance": 0.338
}

Semantic roles & 50–950 ramp

primary
#CD7AFA
secondary
#E1F6D5
accent
#E60051
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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