#CA7FEA#CA7FEA

#CA7FEA is a light, vivid purple. Relative luminance 0.337; OKLCH L 71.5% C 0.168 H 315.1°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#CA7FEA
RGBrgb(202, 127, 234)
HSLhsl(282, 72%, 71%)
HSVhsv(282, 46%, 92%)
CMYKcmyk(13.7%, 45.7%, 0%, 8.2%)
CIE-LABlab(64.71, 46.95, -42.71)
CIE-LCHlch(64.71, 63.47, 317.70°)
OKLaboklab(71.5% 0.1189 -0.1185)
OKLCHoklch(71.5% 0.168 315.1)
XYZxyz(46.7955, 33.6770, 81.8612)
Luminance0.3368 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7FEA #9FEA7F
analogous
#947FEA #CA7FEA #EA7FD4
triadic
#CA7FEA #EACA7F #7FEACA
tetradic
#CA7FEA #EA947F #9FEA7F #7FD4EA
square
#CA7FEA #EA947F #9FEA7F #7FD4EA
split-complementary
#CA7FEA #D4EA7F #7FEA94
monochromatic
#9A22CD #B44AE1 #CA7FEA #E0B4F3 #F4E5FB

Accessibility & contrast

On white

2.71
#CA7FEA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#CA7FEA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7FEA
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7FEA#FFFFFF#000000##000000
##CA7FEA1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A98EE
Deuteranopia (green-blind)
#7F9FE7
Tritanopia (blue-blind)
#C88FAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca7fea;
/* rgb */ color: rgb(202, 127, 234);
/* oklch */ color: oklch(71.5% 0.168 315.1);
Tailwind
colors: {
  custom: {
    50: '#dca6f1',
    500: '#ca7fea',
    950: '#000000',
  },
}
SCSS
$custom: #ca7fea;
$custom-light: #dca6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7fea",
  "rgb": {
    "r": 202,
    "g": 127,
    "b": 234
  },
  "hsl": {
    "h": 282.056,
    "s": 71.812,
    "l": 70.784
  },
  "oklch": {
    "l": 0.71503,
    "c": 0.16781,
    "h": 315.1
  },
  "luminance": 0.33676
}

Semantic roles & 50–950 ramp

primary
#CA7FEA
secondary
#DDF1D4
accent
#D4124C
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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