#CD7AF7#CD7AF7

#CD7AF7 is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.7% C 0.191 H 313.2°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#CD7AF7
RGBrgb(205, 122, 247)
HSLhsl(280, 89%, 72%)
HSVhsv(280, 51%, 97%)
CMYKcmyk(17%, 50.6%, 0%, 3.1%)
CIE-LABlab(64.66, 53.05, -49.94)
CIE-LCHlch(64.66, 72.86, 316.73°)
OKLaboklab(71.74% 0.1308 -0.1393)
OKLCHoklch(71.74% 0.191 313.2)
XYZxyz(48.9220, 33.6148, 91.8888)
Luminance0.3361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7AF7 #A4F77A
analogous
#8F7AF7 #CD7AF7 #F77AE2
triadic
#CD7AF7 #F7CD7A #7AF7CD
tetradic
#CD7AF7 #F78F7A #A4F77A #7AE2F7
square
#CD7AF7 #F78F7A #A4F77A #7AE2F7
split-complementary
#CD7AF7 #E2F77A #7AF78F
monochromatic
#9F0EE9 #B740F4 #CD7AF7 #E3B4FA #F4E2FD

Accessibility & contrast

On white

2.72
#CD7AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#CD7AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7AF7
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7AF7#FFFFFF#000000##000000
##CD7AF71.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C98FB
Deuteranopia (green-blind)
#769FF4
Tritanopia (blue-blind)
#C98EAD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd7af7;
/* rgb */ color: rgb(205, 122, 247);
/* oklch */ color: oklch(71.7% 0.191 313.2);
Tailwind
colors: {
  custom: {
    50: '#dfa3fa',
    500: '#cd7af7',
    950: '#000000',
  },
}
SCSS
$custom: #cd7af7;
$custom-light: #dfa3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7af7",
  "rgb": {
    "r": 205,
    "g": 122,
    "b": 247
  },
  "hsl": {
    "h": 279.84,
    "s": 88.652,
    "l": 72.353
  },
  "oklch": {
    "l": 0.71743,
    "c": 0.19107,
    "h": 313.2
  },
  "luminance": 0.33614
}

Semantic roles & 50–950 ramp

primary
#CD7AF7
secondary
#E0F5D6
accent
#E5004D
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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