#CA7ECC#CA7ECC

#CA7ECC is a light, vivid purple. Relative luminance 0.318; OKLCH L 70.0% C 0.138 H 326.0°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#CA7ECC
RGBrgb(202, 126, 204)
HSLhsl(298, 43%, 65%)
HSVhsv(298, 38%, 80%)
CMYKcmyk(1%, 38.2%, 0%, 20%)
CIE-LABlab(63.21, 41.57, -28.31)
CIE-LCHlch(63.21, 50.29, 325.74°)
OKLaboklab(69.96% 0.1146 -0.0772)
OKLCHoklch(69.96% 0.138 326)
XYZxyz(42.7161, 31.8397, 61.0106)
Luminance0.3184 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7ECC #80CC7E
analogous
#A37ECC #CA7ECC #CC7EA7
triadic
#CA7ECC #CCCA7E #7ECCCA
tetradic
#CA7ECC #CCA37E #80CC7E #7EA7CC
square
#CA7ECC #CCA37E #80CC7E #7EA7CC
split-complementary
#CA7ECC #A7CC7E #7ECCA3
monochromatic
#923B95 #B852BB #CA7ECC #DCAADD #EED6EF

Accessibility & contrast

On white

2.85
#CA7ECC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.37
#CA7ECC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7ECC
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7ECC#FFFFFF#000000##000000
##CA7ECC1.002.857.377.37
#FFFFFF2.851.0021.0021.00
#0000007.3721.001.001.00
##0000007.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7793CF
Deuteranopia (green-blind)
#8B9CC9
Tritanopia (blue-blind)
#CE869C
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ca7ecc;
/* rgb */ color: rgb(202, 126, 204);
/* oklch */ color: oklch(70.0% 0.138 326.0);
Tailwind
colors: {
  custom: {
    50: '#dba5db',
    500: '#ca7ecc',
    950: '#000000',
  },
}
SCSS
$custom: #ca7ecc;
$custom-light: #dba5db;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7ecc",
  "rgb": {
    "r": 202,
    "g": 126,
    "b": 204
  },
  "hsl": {
    "h": 298.462,
    "s": 43.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.69962,
    "c": 0.1382,
    "h": 326
  },
  "luminance": 0.31838
}

Semantic roles & 50–950 ramp

primary
#CA7ECC
secondary
#C6E0C6
accent
#B62F33
background
#FDFAFD
surface
#FBF4FB
border
#D4CED4
text
#150F15
muted
#837F83

Preview Lab

Preview with #CA7ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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