#CD7EF2#CD7EF2

#CD7EF2 is a light, vivid purple. Relative luminance 0.343; OKLCH L 72.1% C 0.179 H 314.1°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#CD7EF2
RGBrgb(205, 126, 242)
HSLhsl(281, 82%, 72%)
HSVhsv(281, 48%, 95%)
CMYKcmyk(15.3%, 47.9%, 0%, 5.1%)
CIE-LABlab(65.21, 49.95, -46.31)
CIE-LCHlch(65.21, 68.12, 317.16°)
OKLaboklab(72.08% 0.1249 -0.1288)
OKLCHoklch(72.08% 0.179 314.1)
XYZxyz(48.6621, 34.3129, 88.0468)
Luminance0.3431 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7EF2 #A3F27E
analogous
#937EF2 #CD7EF2 #F27EDD
triadic
#CD7EF2 #F2CD7E #7EF2CD
tetradic
#CD7EF2 #F2937E #A3F27E #7EDDF2
square
#CD7EF2 #F2937E #A3F27E #7EDDF2
split-complementary
#CD7EF2 #DDF27E #7EF293
monochromatic
#9F16DF #B746EC #CD7EF2 #E3B6F8 #F4E3FC

Accessibility & contrast

On white

2.67
#CD7EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#CD7EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7EF2
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7EF2#FFFFFF#000000##000000
##CD7EF21.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#659AF6
Deuteranopia (green-blind)
#7CA0EF
Tritanopia (blue-blind)
#CA90AD
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cd7ef2;
/* rgb */ color: rgb(205, 126, 242);
/* oklch */ color: oklch(72.1% 0.179 314.1);
Tailwind
colors: {
  custom: {
    50: '#dea5f7',
    500: '#cd7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #cd7ef2;
$custom-light: #dea5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7ef2",
  "rgb": {
    "r": 205,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 280.862,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.72075,
    "c": 0.17939,
    "h": 314.1
  },
  "luminance": 0.34312
}

Semantic roles & 50–950 ramp

primary
#CD7EF2
secondary
#E0F4D7
accent
#DE074C
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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