#CA98FA#CA98FA

#CA98FA is a light, vivid violet. Relative luminance 0.419; OKLCH L 76.3% C 0.145 H 306.7°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#CA98FA
RGBrgb(202, 152, 250)
HSLhsl(271, 91%, 79%)
HSVhsv(271, 39%, 98%)
CMYKcmyk(19.2%, 39.2%, 0%, 2%)
CIE-LABlab(70.81, 36.93, -41.92)
CIE-LCHlch(70.81, 55.87, 311.38°)
OKLaboklab(76.32% 0.0868 -0.1163)
OKLCHoklch(76.32% 0.145 306.7)
XYZxyz(52.8373, 41.9156, 95.7309)
Luminance0.4192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA98FA #C8FA98
analogous
#9998FA #CA98FA #FA98F9
triadic
#CA98FA #FACA98 #98FACA
tetradic
#CA98FA #FA9998 #C8FA98 #98F9FA
square
#CA98FA #FA9998 #C8FA98 #98F9FA
split-complementary
#CA98FA #F9FA98 #98FA99
monochromatic
#8E23F4 #AC5EF7 #CA98FA #E8D2FD #F0E2FE

Accessibility & contrast

On white

2.24
#CA98FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#CA98FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA98FA
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA98FA#FFFFFF#000000##000000
##CA98FA1.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ABFE
Deuteranopia (green-blind)
#8EAEF7
Tritanopia (blue-blind)
#C3A7BD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ca98fa;
/* rgb */ color: rgb(202, 152, 250);
/* oklch */ color: oklch(76.3% 0.145 306.7);
Tailwind
colors: {
  custom: {
    50: '#dbb7fc',
    500: '#ca98fa',
    950: '#000000',
  },
}
SCSS
$custom: #ca98fa;
$custom-light: #dbb7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ca98fa",
  "rgb": {
    "r": 202,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 270.612,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.76322,
    "c": 0.14513,
    "h": 306.7
  },
  "luminance": 0.41915
}

Semantic roles & 50–950 ramp

primary
#CA98FA
secondary
#E5F6D5
accent
#E60070
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CA98FA

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

Preview Lab → · Contrast checker → · Palette generator →

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