#CD7CEF#CD7CEF

#CD7CEF is a light, vivid purple. Relative luminance 0.336; OKLCH L 71.6% C 0.179 H 315.2°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#CD7CEF
RGBrgb(205, 124, 239)
HSLhsl(282, 78%, 71%)
HSVhsv(282, 48%, 94%)
CMYKcmyk(14.2%, 48.1%, 0%, 6.3%)
CIE-LABlab(64.67, 50.37, -45.51)
CIE-LCHlch(64.67, 67.89, 317.90°)
OKLaboklab(71.62% 0.1272 -0.1265)
OKLCHoklch(71.62% 0.179 315.2)
XYZxyz(47.9620, 33.6278, 85.6089)
Luminance0.3363 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7CEF #9EEF7C
analogous
#937CEF #CD7CEF #EF7CD7
triadic
#CD7CEF #EFCD7C #7CEFCD
tetradic
#CD7CEF #EF937C #9EEF7C #7CD7EF
square
#CD7CEF #EF937C #9EEF7C #7CD7EF
split-complementary
#CD7CEF #D7EF7C #7CEF93
monochromatic
#9F1AD6 #B845E8 #CD7CEF #E2B3F6 #F5E4FC

Accessibility & contrast

On white

2.72
#CD7CEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#CD7CEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7CEF
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7CEF#FFFFFF#000000##000000
##CD7CEF1.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6498F3
Deuteranopia (green-blind)
#7C9FEC
Tritanopia (blue-blind)
#CB8DAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd7cef;
/* rgb */ color: rgb(205, 124, 239);
/* oklch */ color: oklch(71.6% 0.179 315.2);
Tailwind
colors: {
  custom: {
    50: '#dea4f4',
    500: '#cd7cef',
    950: '#000000',
  },
}
SCSS
$custom: #cd7cef;
$custom-light: #dea4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7cef",
  "rgb": {
    "r": 205,
    "g": 124,
    "b": 239
  },
  "hsl": {
    "h": 282.261,
    "s": 78.231,
    "l": 71.176
  },
  "oklch": {
    "l": 0.71624,
    "c": 0.17937,
    "h": 315.2
  },
  "luminance": 0.33626
}

Semantic roles & 50–950 ramp

primary
#CD7CEF
secondary
#DDF3D4
accent
#DA0B48
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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