#CD7FEC#CD7FEC

#CD7FEC is a light, vivid purple. Relative luminance 0.342; OKLCH L 71.9% C 0.171 H 315.7°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#CD7FEC
RGBrgb(205, 127, 236)
HSLhsl(283, 74%, 71%)
HSVhsv(283, 46%, 93%)
CMYKcmyk(13.1%, 46.2%, 0%, 7.5%)
CIE-LABlab(65.13, 48.20, -43.12)
CIE-LCHlch(65.13, 64.67, 318.18°)
OKLaboklab(71.93% 0.1227 -0.1196)
OKLCHoklch(71.93% 0.171 315.7)
XYZxyz(47.9042, 34.2153, 83.4214)
Luminance0.3421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7FEC #9EEC7F
analogous
#967FEC #CD7FEC #EC7FD4
triadic
#CD7FEC #ECCD7F #7FECCD
tetradic
#CD7FEC #EC967F #9EEC7F #7FD4EC
square
#CD7FEC #EC967F #9EEC7F #7FD4EC
split-complementary
#CD7FEC #D4EC7F #7FEC96
monochromatic
#9F1FD2 #B84AE4 #CD7FEC #E2B4F4 #F5E4FB

Accessibility & contrast

On white

2.68
#CD7FEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#CD7FEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7FEC
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7FEC#FFFFFF#000000##000000
##CD7FEC1.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A99F0
Deuteranopia (green-blind)
#80A0E9
Tritanopia (blue-blind)
#CB8FAA
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cd7fec;
/* rgb */ color: rgb(205, 127, 236);
/* oklch */ color: oklch(71.9% 0.171 315.7);
Tailwind
colors: {
  custom: {
    50: '#dea6f2',
    500: '#cd7fec',
    950: '#000000',
  },
}
SCSS
$custom: #cd7fec;
$custom-light: #dea6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7fec",
  "rgb": {
    "r": 205,
    "g": 127,
    "b": 236
  },
  "hsl": {
    "h": 282.936,
    "s": 74.15,
    "l": 71.176
  },
  "oklch": {
    "l": 0.71926,
    "c": 0.17131,
    "h": 315.7
  },
  "luminance": 0.34214
}

Semantic roles & 50–950 ramp

primary
#CD7FEC
secondary
#DDF2D5
accent
#D60F48
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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