#CA98F4#CA98F4

#CA98F4 is a light, vivid violet. Relative luminance 0.415; OKLCH L 76.0% C 0.138 H 308.4°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#CA98F4
RGBrgb(202, 152, 244)
HSLhsl(273, 81%, 78%)
HSVhsv(273, 38%, 96%)
CMYKcmyk(17.2%, 37.7%, 0%, 4.3%)
CIE-LABlab(70.56, 35.62, -39.05)
CIE-LCHlch(70.56, 52.86, 312.37°)
OKLaboklab(76.04% 0.0856 -0.1081)
OKLCHoklch(76.04% 0.138 308.4)
XYZxyz(51.9114, 41.5452, 90.8547)
Luminance0.4154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA98F4 #C2F498
analogous
#9C98F4 #CA98F4 #F498F0
triadic
#CA98F4 #F4CA98 #98F4CA
tetradic
#CA98F4 #F49C98 #C2F498 #98F0F4
square
#CA98F4 #F49C98 #C2F498 #98F0F4
split-complementary
#CA98F4 #F0F498 #98F49C
monochromatic
#9129E8 #AE61EE #CA98F4 #E6CFFA #F1E3FC

Accessibility & contrast

On white

2.26
#CA98F4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.31
#CA98F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA98F4
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA98F4#FFFFFF#000000##000000
##CA98F41.002.269.319.31
#FFFFFF2.261.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#85AAF7
Deuteranopia (green-blind)
#90ADF1
Tritanopia (blue-blind)
#C5A6BB
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ca98f4;
/* rgb */ color: rgb(202, 152, 244);
/* oklch */ color: oklch(76.0% 0.138 308.4);
Tailwind
colors: {
  custom: {
    50: '#dbb7f8',
    500: '#ca98f4',
    950: '#000000',
  },
}
SCSS
$custom: #ca98f4;
$custom-light: #dbb7f8;
$custom-dark: #000000;
JSON
{
  "hex": "#ca98f4",
  "rgb": {
    "r": 202,
    "g": 152,
    "b": 244
  },
  "hsl": {
    "h": 272.609,
    "s": 80.702,
    "l": 77.647
  },
  "oklch": {
    "l": 0.76044,
    "c": 0.13786,
    "h": 308.4
  },
  "luminance": 0.41545
}

Semantic roles & 50–950 ramp

primary
#CA98F4
secondary
#E4F4D7
accent
#DD086A
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CA98F4

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

Preview Lab → · Contrast checker → · Palette generator →

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