#CA98FC#CA98FC

#CA98FC is a light, vivid violet. Relative luminance 0.420; OKLCH L 76.4% C 0.148 H 306.2°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#CA98FC
RGBrgb(202, 152, 252)
HSLhsl(270, 94%, 79%)
HSVhsv(270, 40%, 99%)
CMYKcmyk(19.8%, 39.7%, 0%, 1.2%)
CIE-LABlab(70.90, 37.37, -42.87)
CIE-LCHlch(70.90, 56.87, 311.08°)
OKLaboklab(76.42% 0.0872 -0.119)
OKLCHoklch(76.42% 0.148 306.2)
XYZxyz(53.1525, 42.0417, 97.3913)
Luminance0.4204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA98FC #CAFC98
analogous
#9898FC #CA98FC #FC98FC
triadic
#CA98FC #FCCA98 #98FCCA
tetradic
#CA98FC #FC9898 #CAFC98 #98FCFC
square
#CA98FC #FC9898 #CAFC98 #98FCFC
split-complementary
#CA98FC #FCFC98 #98FC98
monochromatic
#8D21F9 #AB5DFA #CA98FC #E9D3FE #F0E1FE

Accessibility & contrast

On white

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

On black

9.41
#CA98FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA98FC
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA98FC#FFFFFF#000000##000000
##CA98FC1.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ACFF
Deuteranopia (green-blind)
#8DAEF9
Tritanopia (blue-blind)
#C3A8BE
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ca98fc;
/* rgb */ color: rgb(202, 152, 252);
/* oklch */ color: oklch(76.4% 0.148 306.2);
Tailwind
colors: {
  custom: {
    50: '#dbb7fd',
    500: '#ca98fc',
    950: '#000000',
  },
}
SCSS
$custom: #ca98fc;
$custom-light: #dbb7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca98fc",
  "rgb": {
    "r": 202,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 270,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76417,
    "c": 0.14757,
    "h": 306.2
  },
  "luminance": 0.42041
}

Semantic roles & 50–950 ramp

primary
#CA98FC
secondary
#E6F6D5
accent
#E60073
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CA98FC

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

Preview Lab → · Contrast checker → · Palette generator →

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