#CD7DFE#CD7DFE

#CD7DFE is a light, vivid violet. Relative luminance 0.348; OKLCH L 72.6% C 0.194 H 311.1°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#CD7DFE
RGBrgb(205, 125, 254)
HSLhsl(277, 98%, 74%)
HSVhsv(277, 51%, 100%)
CMYKcmyk(19.3%, 50.8%, 0%, 0.4%)
CIE-LABlab(65.60, 52.99, -52.30)
CIE-LCHlch(65.60, 74.45, 315.38°)
OKLaboklab(72.55% 0.1275 -0.1462)
OKLCHoklch(72.55% 0.194 311.1)
XYZxyz(50.3966, 34.8031, 97.8095)
Luminance0.3480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DFE #AEFE7D
analogous
#8D7DFE #CD7DFE #FE7DEF
triadic
#CD7DFE #FECD7D #7DFECD
tetradic
#CD7DFE #FE8D7D #AEFE7D #7DEFFE
square
#CD7DFE #FE8D7D #AEFE7D #7DEFFE
split-complementary
#CD7DFE #EFFE7D #7DFE8D
monochromatic
#9E04FD #B640FE #CD7DFE #E4BAFE #F3E1FF

Accessibility & contrast

On white

2.64
#CD7DFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#CD7DFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7DFE
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7DFE#FFFFFF#000000##000000
##CD7DFE1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B9BFF
Deuteranopia (green-blind)
#74A1FB
Tritanopia (blue-blind)
#C792B2
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd7dfe;
/* rgb */ color: rgb(205, 125, 254);
/* oklch */ color: oklch(72.6% 0.194 311.1);
Tailwind
colors: {
  custom: {
    50: '#dfa5ff',
    500: '#cd7dfe',
    950: '#000000',
  },
}
SCSS
$custom: #cd7dfe;
$custom-light: #dfa5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7dfe",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 254
  },
  "hsl": {
    "h": 277.209,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.72551,
    "c": 0.19396,
    "h": 311.1
  },
  "luminance": 0.34802
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD7DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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