#CD7DF7#CD7DF7

#CD7DF7 is a light, vivid violet. Relative luminance 0.344; OKLCH L 72.2% C 0.186 H 312.9°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#CD7DF7
RGBrgb(205, 125, 247)
HSLhsl(279, 88%, 73%)
HSVhsv(279, 49%, 97%)
CMYKcmyk(17%, 49.4%, 0%, 3.1%)
CIE-LABlab(65.25, 51.51, -49.00)
CIE-LCHlch(65.25, 71.09, 316.43°)
OKLaboklab(72.18% 0.1268 -0.1366)
OKLCHoklch(72.18% 0.186 312.9)
XYZxyz(49.2961, 34.3629, 92.0135)
Luminance0.3436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DF7 #A7F77D
analogous
#907DF7 #CD7DF7 #F77DE4
triadic
#CD7DF7 #F7CD7D #7DF7CD
tetradic
#CD7DF7 #F7907D #A7F77D #7DE4F7
square
#CD7DF7 #F7907D #A7F77D #7DE4F7
split-complementary
#CD7DF7 #E4F77D #7DF790
monochromatic
#9F0EEB #B743F3 #CD7DF7 #E3B7FB #F4E2FD

Accessibility & contrast

On white

2.67
#CD7DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#CD7DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7DF7
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7DF7#FFFFFF#000000##000000
##CD7DF71.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#619AFB
Deuteranopia (green-blind)
#78A0F4
Tritanopia (blue-blind)
#C990AF
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cd7df7;
/* rgb */ color: rgb(205, 125, 247);
/* oklch */ color: oklch(72.2% 0.186 312.9);
Tailwind
colors: {
  custom: {
    50: '#dea5fa',
    500: '#cd7df7',
    950: '#000000',
  },
}
SCSS
$custom: #cd7df7;
$custom-light: #dea5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7df7",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 247
  },
  "hsl": {
    "h": 279.344,
    "s": 88.406,
    "l": 72.941
  },
  "oklch": {
    "l": 0.72182,
    "c": 0.18637,
    "h": 312.9
  },
  "luminance": 0.34362
}

Semantic roles & 50–950 ramp

primary
#CD7DF7
secondary
#E1F5D6
accent
#E5004F
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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