#CA98FD#CA98FD

#CA98FD is a light, vivid violet. Relative luminance 0.421; OKLCH L 76.5% C 0.149 H 306.0°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#CA98FD
RGBrgb(202, 152, 253)
HSLhsl(270, 96%, 79%)
HSVhsv(270, 40%, 99%)
CMYKcmyk(20.2%, 39.9%, 0%, 0.8%)
CIE-LABlab(70.94, 37.59, -43.35)
CIE-LCHlch(70.94, 57.38, 310.93°)
OKLaboklab(76.46% 0.0874 -0.1204)
OKLCHoklch(76.46% 0.149 306)
XYZxyz(53.3114, 42.1052, 98.2281)
Luminance0.4210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA98FD #CBFD98
analogous
#9899FD #CA98FD #FC98FD
triadic
#CA98FD #FDCA98 #98FDCA
tetradic
#CA98FD #FD9899 #CBFD98 #98FDFC
square
#CA98FD #FD9899 #CBFD98 #98FDFC
split-complementary
#CA98FD #FDFC98 #99FD98
monochromatic
#8C20FB #AB5CFC #CA98FD #E9D4FE #F0E1FE

Accessibility & contrast

On white

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

On black

9.42
#CA98FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA98FD
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA98FD#FFFFFF#000000##000000
##CA98FD1.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ca98fd;
/* rgb */ color: rgb(202, 152, 253);
/* oklch */ color: oklch(76.5% 0.149 306.0);
Tailwind
colors: {
  custom: {
    50: '#dcb7fe',
    500: '#ca98fd',
    950: '#000000',
  },
}
SCSS
$custom: #ca98fd;
$custom-light: #dcb7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ca98fd",
  "rgb": {
    "r": 202,
    "g": 152,
    "b": 253
  },
  "hsl": {
    "h": 269.703,
    "s": 96.19,
    "l": 79.412
  },
  "oklch": {
    "l": 0.76464,
    "c": 0.14878,
    "h": 306
  },
  "luminance": 0.42105
}

Semantic roles & 50–950 ramp

primary
#CA98FD
secondary
#E6F7D4
accent
#E60074
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CA98FD

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

Preview Lab → · Contrast checker → · Palette generator →

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