#CA98FE#CA98FE

#CA98FE is a light, vivid violet. Relative luminance 0.422; OKLCH L 76.5% C 0.150 H 305.7°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#CA98FE
RGBrgb(202, 152, 254)
HSLhsl(269, 98%, 80%)
HSVhsv(269, 40%, 100%)
CMYKcmyk(20.5%, 40.2%, 0%, 0.4%)
CIE-LABlab(70.99, 37.81, -43.82)
CIE-LCHlch(70.99, 57.88, 310.79°)
OKLaboklab(76.51% 0.0876 -0.1218)
OKLCHoklch(76.51% 0.15 305.7)
XYZxyz(53.4711, 42.1691, 99.0692)
Luminance0.4217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA98FE #CCFE98
analogous
#9899FE #CA98FE #FD98FE
triadic
#CA98FE #FECA98 #98FECA
tetradic
#CA98FE #FE9899 #CCFE98 #98FEFD
square
#CA98FE #FE9899 #CCFE98 #98FEFD
split-complementary
#CA98FE #FEFD98 #99FE98
monochromatic
#8C1FFD #AB5BFD #CA98FE #E9D5FF #EFE1FF

Accessibility & contrast

On white

2.23
#CA98FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.43
#CA98FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA98FE
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA98FE#FFFFFF#000000##000000
##CA98FE1.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#80ACFF
Deuteranopia (green-blind)
#8CAEFB
Tritanopia (blue-blind)
#C2A8BF
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ca98fe;
/* rgb */ color: rgb(202, 152, 254);
/* oklch */ color: oklch(76.5% 0.150 305.7);
Tailwind
colors: {
  custom: {
    50: '#dcb7ff',
    500: '#ca98fe',
    950: '#000000',
  },
}
SCSS
$custom: #ca98fe;
$custom-light: #dcb7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ca98fe",
  "rgb": {
    "r": 202,
    "g": 152,
    "b": 254
  },
  "hsl": {
    "h": 269.412,
    "s": 98.077,
    "l": 79.608
  },
  "oklch": {
    "l": 0.76511,
    "c": 0.15,
    "h": 305.7
  },
  "luminance": 0.42169
}

Semantic roles & 50–950 ramp

primary
#CA98FE
secondary
#E6F7D4
accent
#E60075
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CA98FE

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

Preview Lab → · Contrast checker → · Palette generator →

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