#CA9FEF#CA9FEF

#CA9FEF is a light, vivid violet. Relative luminance 0.436; OKLCH L 77.0% C 0.120 H 308.4°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#CA9FEF
RGBrgb(202, 159, 239)
HSLhsl(272, 71%, 78%)
HSVhsv(272, 33%, 94%)
CMYKcmyk(15.5%, 33.5%, 0%, 6.3%)
CIE-LABlab(71.95, 30.71, -34.16)
CIE-LCHlch(71.95, 45.94, 311.95°)
OKLaboklab(77.04% 0.0746 -0.0941)
OKLCHoklch(77.04% 0.12 308.4)
XYZxyz(52.3324, 43.5853, 87.3005)
Luminance0.4359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA9FEF #C4EF9F
analogous
#A29FEF #CA9FEF #EF9FEC
triadic
#CA9FEF #EFCA9F #9FEFCA
tetradic
#CA9FEF #EFA29F #C4EF9F #9FECEF
square
#CA9FEF #EFA29F #C4EF9F #9FECEF
split-complementary
#CA9FEF #ECEF9F #9FEFA2
monochromatic
#9036DE #AD6BE6 #CA9FEF #E7D3F8 #F1E5FB

Accessibility & contrast

On white

2.16
#CA9FEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#CA9FEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA9FEF
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA9FEF#FFFFFF#000000##000000
##CA9FEF1.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#90AEF2
Deuteranopia (green-blind)
#99B1ED
Tritanopia (blue-blind)
#C5AABC
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #ca9fef;
/* rgb */ color: rgb(202, 159, 239);
/* oklch */ color: oklch(77.0% 0.120 308.4);
Tailwind
colors: {
  custom: {
    50: '#dbbbf4',
    500: '#ca9fef',
    950: '#000000',
  },
}
SCSS
$custom: #ca9fef;
$custom-light: #dbbbf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca9fef",
  "rgb": {
    "r": 202,
    "g": 159,
    "b": 239
  },
  "hsl": {
    "h": 272.25,
    "s": 71.429,
    "l": 78.039
  },
  "oklch": {
    "l": 0.77035,
    "c": 0.12004,
    "h": 308.4
  },
  "luminance": 0.43585
}

Semantic roles & 50–950 ramp

primary
#CA9FEF
secondary
#E5F2D9
accent
#D3126B
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151217
muted
#838185

Preview Lab

Preview with #CA9FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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