#CA7EC2#CA7EC2

#CA7EC2 is a light, vivid purple. Relative luminance 0.314; OKLCH L 69.5% C 0.129 H 330.7°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#CA7EC2
RGBrgb(202, 126, 194)
HSLhsl(306, 42%, 64%)
HSVhsv(306, 38%, 79%)
CMYKcmyk(0%, 37.6%, 4%, 20.8%)
CIE-LABlab(62.82, 39.73, -23.28)
CIE-LCHlch(62.82, 46.05, 329.64°)
OKLaboklab(69.54% 0.1122 -0.063)
OKLCHoklch(69.54% 0.129 330.7)
XYZxyz(41.5550, 31.3753, 54.8956)
Luminance0.3137 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7EC2 #7ECA86
analogous
#AC7ECA #CA7EC2 #CA7E9C
triadic
#CA7EC2 #C2CA7E #7EC2CA
tetradic
#CA7EC2 #CAAC7E #7ECA86 #7E9CCA
square
#CA7EC2 #CAAC7E #7ECA86 #7E9CCA
split-complementary
#CA7EC2 #9CCA7E #7ECAAC
monochromatic
#923C89 #B853AD #CA7EC2 #DCA9D7 #EED5EB

Accessibility & contrast

On white

2.89
#CA7EC2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#CA7EC2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7EC2
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7EC2#FFFFFF#000000##000000
##CA7EC21.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B91C5
Deuteranopia (green-blind)
#8F9CC0
Tritanopia (blue-blind)
#D08397
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ca7ec2;
/* rgb */ color: rgb(202, 126, 194);
/* oklch */ color: oklch(69.5% 0.129 330.7);
Tailwind
colors: {
  custom: {
    50: '#dba5d4',
    500: '#ca7ec2',
    950: '#000000',
  },
}
SCSS
$custom: #ca7ec2;
$custom-light: #dba5d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7ec2",
  "rgb": {
    "r": 202,
    "g": 126,
    "b": 194
  },
  "hsl": {
    "h": 306.316,
    "s": 41.758,
    "l": 64.314
  },
  "oklch": {
    "l": 0.69543,
    "c": 0.12865,
    "h": 330.7
  },
  "luminance": 0.31373
}

Semantic roles & 50–950 ramp

primary
#CA7EC2
secondary
#C5DFC7
accent
#B53F31
background
#FDFAFD
surface
#FBF4FA
border
#D4CED3
text
#150F14
muted
#837F83

Preview Lab

Preview with #CA7EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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