#CD7AFD#CD7AFD

#CD7AFD is a light, vivid violet. Relative luminance 0.340; OKLCH L 72.1% C 0.198 H 311.7°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#CD7AFD
RGBrgb(205, 122, 253)
HSLhsl(278, 97%, 74%)
HSVhsv(278, 52%, 99%)
CMYKcmyk(19%, 51.8%, 0%, 0.8%)
CIE-LABlab(64.96, 54.31, -52.76)
CIE-LCHlch(64.96, 75.72, 315.83°)
OKLaboklab(72.06% 0.1313 -0.1475)
OKLCHoklch(72.06% 0.198 311.7)
XYZxyz(49.8628, 33.9911, 96.8437)
Luminance0.3399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7AFD #AAFD7A
analogous
#8B7AFD #CD7AFD #FD7AEC
triadic
#CD7AFD #FDCD7A #7AFDCD
tetradic
#CD7AFD #FD8B7A #AAFD7A #7AECFD
square
#CD7AFD #FD8B7A #AAFD7A #7AECFD
split-complementary
#CD7AFD #ECFD7A #7AFD8B
monochromatic
#9F04F9 #B63EFC #CD7AFD #E4B6FE #F4E1FF

Accessibility & contrast

On white

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

On black

7.80
#CD7AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7AFD
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7AFD#FFFFFF#000000##000000
##CD7AFD1.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd7afd;
/* rgb */ color: rgb(205, 122, 253);
/* oklch */ color: oklch(72.1% 0.198 311.7);
Tailwind
colors: {
  custom: {
    50: '#dfa3fe',
    500: '#cd7afd',
    950: '#000000',
  },
}
SCSS
$custom: #cd7afd;
$custom-light: #dfa3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7afd",
  "rgb": {
    "r": 205,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 278.015,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.72062,
    "c": 0.1975,
    "h": 311.7
  },
  "luminance": 0.3399
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD7AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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