#CA7DEC#CA7DEC

#CA7DEC is a light, vivid purple. Relative luminance 0.333; OKLCH L 71.3% C 0.173 H 314.7°. Best body text is #000000 at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#CA7DEC
RGBrgb(202, 125, 236)
HSLhsl(282, 74%, 71%)
HSVhsv(282, 47%, 93%)
CMYKcmyk(14.4%, 47%, 0%, 7.5%)
CIE-LABlab(64.39, 48.41, -44.32)
CIE-LCHlch(64.39, 65.63, 317.53°)
OKLaboklab(71.3% 0.1219 -0.1231)
OKLCHoklch(71.3% 0.173 314.7)
XYZxyz(46.8287, 33.2811, 83.2977)
Luminance0.3328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7DEC #9FEC7D
analogous
#927DEC #CA7DEC #EC7DD6
triadic
#CA7DEC #ECCA7D #7DECCA
tetradic
#CA7DEC #EC927D #9FEC7D #7DD6EC
square
#CA7DEC #EC927D #9FEC7D #7DD6EC
split-complementary
#CA7DEC #D6EC7D #7DEC92
monochromatic
#9A1ED0 #B448E4 #CA7DEC #E0B2F4 #F4E4FB

Accessibility & contrast

On white

2.74
#CA7DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.66
#CA7DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7DEC
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7DEC#FFFFFF#000000##000000
##CA7DEC1.002.747.667.66
#FFFFFF2.741.0021.0021.00
#0000007.6621.001.001.00
##0000007.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6698F0
Deuteranopia (green-blind)
#7C9EE9
Tritanopia (blue-blind)
#C88DAA
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ca7dec;
/* rgb */ color: rgb(202, 125, 236);
/* oklch */ color: oklch(71.3% 0.173 314.7);
Tailwind
colors: {
  custom: {
    50: '#dca5f2',
    500: '#ca7dec',
    950: '#000000',
  },
}
SCSS
$custom: #ca7dec;
$custom-light: #dca5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7dec",
  "rgb": {
    "r": 202,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 281.622,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.71297,
    "c": 0.17324,
    "h": 314.7
  },
  "luminance": 0.3328
}

Semantic roles & 50–950 ramp

primary
#CA7DEC
secondary
#DDF1D3
accent
#D70F4C
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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