#CD7EFD#CD7EFD

#CD7EFD is a light, vivid violet. Relative luminance 0.350; OKLCH L 72.6% C 0.191 H 311.2°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#CD7EFD
RGBrgb(205, 126, 253)
HSLhsl(277, 97%, 74%)
HSVhsv(277, 50%, 99%)
CMYKcmyk(19%, 50.2%, 0%, 0.8%)
CIE-LABlab(65.74, 52.26, -51.51)
CIE-LCHlch(65.74, 73.38, 315.41°)
OKLaboklab(72.65% 0.1261 -0.1439)
OKLCHoklch(72.65% 0.191 311.2)
XYZxyz(50.3641, 34.9937, 97.0108)
Luminance0.3499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7EFD #AEFD7E
analogous
#8E7EFD #CD7EFD #FD7EEE
triadic
#CD7EFD #FDCD7E #7EFDCD
tetradic
#CD7EFD #FD8E7E #AEFD7E #7EEEFD
square
#CD7EFD #FD8E7E #AEFD7E #7EEEFD
split-complementary
#CD7EFD #EEFD7E #7EFD8E
monochromatic
#9E05FB #B642FC #CD7EFD #E4BAFE #F3E1FF

Accessibility & contrast

On white

2.63
#CD7EFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.00
#CD7EFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7EFD
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7EFD#FFFFFF#000000##000000
##CD7EFD1.002.638.008.00
#FFFFFF2.631.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9CFF
Deuteranopia (green-blind)
#76A1FA
Tritanopia (blue-blind)
#C893B2
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cd7efd;
/* rgb */ color: rgb(205, 126, 253);
/* oklch */ color: oklch(72.6% 0.191 311.2);
Tailwind
colors: {
  custom: {
    50: '#dfa6fe',
    500: '#cd7efd',
    950: '#000000',
  },
}
SCSS
$custom: #cd7efd;
$custom-light: #dfa6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7efd",
  "rgb": {
    "r": 205,
    "g": 126,
    "b": 253
  },
  "hsl": {
    "h": 277.323,
    "s": 96.947,
    "l": 74.314
  },
  "oklch": {
    "l": 0.72645,
    "c": 0.19133,
    "h": 311.2
  },
  "luminance": 0.34993
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD7EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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