#CD7EF8#CD7EF8

#CD7EF8 is a light, vivid violet. Relative luminance 0.347; OKLCH L 72.4% C 0.186 H 312.5°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#CD7EF8
RGBrgb(205, 126, 248)
HSLhsl(279, 90%, 73%)
HSVhsv(279, 49%, 97%)
CMYKcmyk(17.3%, 49.2%, 0%, 2.7%)
CIE-LABlab(65.50, 51.20, -49.16)
CIE-LCHlch(65.50, 70.98, 316.17°)
OKLaboklab(72.38% 0.1256 -0.1371)
OKLCHoklch(72.38% 0.186 312.5)
XYZxyz(49.5780, 34.6793, 92.8708)
Luminance0.3468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7EF8 #A9F87E
analogous
#907EF8 #CD7EF8 #F87EE6
triadic
#CD7EF8 #F8CD7E #7EF8CD
tetradic
#CD7EF8 #F8907E #A9F87E #7EE6F8
square
#CD7EF8 #F8907E #A9F87E #7EE6F8
split-complementary
#CD7EF8 #E6F87E #7EF890
monochromatic
#9F0DEF #B644F5 #CD7EF8 #E3B8FB #F4E2FD

Accessibility & contrast

On white

2.65
#CD7EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.94
#CD7EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7EF8
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7EF8#FFFFFF#000000##000000
##CD7EF81.002.657.947.94
#FFFFFF2.651.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#619BFC
Deuteranopia (green-blind)
#79A1F5
Tritanopia (blue-blind)
#C991B0
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd7ef8;
/* rgb */ color: rgb(205, 126, 248);
/* oklch */ color: oklch(72.4% 0.186 312.5);
Tailwind
colors: {
  custom: {
    50: '#dea5fb',
    500: '#cd7ef8',
    950: '#000000',
  },
}
SCSS
$custom: #cd7ef8;
$custom-light: #dea5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7ef8",
  "rgb": {
    "r": 205,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 278.852,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72383,
    "c": 0.18589,
    "h": 312.5
  },
  "luminance": 0.34678
}

Semantic roles & 50–950 ramp

primary
#CD7EF8
secondary
#E1F6D5
accent
#E60051
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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