#CD7EF5#CD7EF5

#CD7EF5 is a light, vivid violet. Relative luminance 0.345; OKLCH L 72.2% C 0.183 H 313.3°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#CD7EF5
RGBrgb(205, 126, 245)
HSLhsl(280, 86%, 73%)
HSVhsv(280, 49%, 96%)
CMYKcmyk(16.3%, 48.6%, 0%, 3.9%)
CIE-LABlab(65.35, 50.57, -47.74)
CIE-LCHlch(65.35, 69.55, 316.65°)
OKLaboklab(72.23% 0.1252 -0.1329)
OKLCHoklch(72.23% 0.183 313.3)
XYZxyz(49.1164, 34.4946, 90.4392)
Luminance0.3449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7EF5 #A6F57E
analogous
#917EF5 #CD7EF5 #F57EE1
triadic
#CD7EF5 #F5CD7E #7EF5CD
tetradic
#CD7EF5 #F5917E #A6F57E #7EE1F5
square
#CD7EF5 #F5917E #A6F57E #7EE1F5
split-complementary
#CD7EF5 #E1F57E #7EF591
monochromatic
#9F12E7 #B745F1 #CD7EF5 #E3B7F9 #F4E3FD

Accessibility & contrast

On white

2.66
#CD7EF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.90
#CD7EF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7EF5
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7EF5#FFFFFF#000000##000000
##CD7EF51.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#639AF9
Deuteranopia (green-blind)
#7AA1F2
Tritanopia (blue-blind)
#C991AE
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd7ef5;
/* rgb */ color: rgb(205, 126, 245);
/* oklch */ color: oklch(72.2% 0.183 313.3);
Tailwind
colors: {
  custom: {
    50: '#dea5f9',
    500: '#cd7ef5',
    950: '#000000',
  },
}
SCSS
$custom: #cd7ef5;
$custom-light: #dea5f9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7ef5",
  "rgb": {
    "r": 205,
    "g": 126,
    "b": 245
  },
  "hsl": {
    "h": 279.832,
    "s": 85.612,
    "l": 72.745
  },
  "oklch": {
    "l": 0.72228,
    "c": 0.18263,
    "h": 313.3
  },
  "luminance": 0.34493
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD7EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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