#CA98FB#CA98FB

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

Color values

HEX#CA98FB
RGBrgb(202, 152, 251)
HSLhsl(270, 93%, 79%)
HSVhsv(270, 39%, 98%)
CMYKcmyk(19.5%, 39.4%, 0%, 1.6%)
CIE-LABlab(70.86, 37.15, -42.40)
CIE-LCHlch(70.86, 56.37, 311.23°)
OKLaboklab(76.37% 0.087 -0.1177)
OKLCHoklch(76.37% 0.146 306.5)
XYZxyz(52.9945, 41.9785, 96.5589)
Luminance0.4198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA98FB #C9FB98
analogous
#9998FB #CA98FB #FB98FA
triadic
#CA98FB #FBCA98 #98FBCA
tetradic
#CA98FB #FB9998 #C9FB98 #98FAFB
square
#CA98FB #FB9998 #C9FB98 #98FAFB
split-complementary
#CA98FB #FAFB98 #98FB99
monochromatic
#8D22F6 #AC5DF9 #CA98FB #E8D3FD #F0E2FE

Accessibility & contrast

On white

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

On black

9.40
#CA98FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA98FB
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA98FB#FFFFFF#000000##000000
##CA98FB1.002.249.409.40
#FFFFFF2.241.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ACFF
Deuteranopia (green-blind)
#8DAEF8
Tritanopia (blue-blind)
#C3A7BE
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ca98fb;
/* rgb */ color: rgb(202, 152, 251);
/* oklch */ color: oklch(76.4% 0.146 306.5);
Tailwind
colors: {
  custom: {
    50: '#dbb7fd',
    500: '#ca98fb',
    950: '#000000',
  },
}
SCSS
$custom: #ca98fb;
$custom-light: #dbb7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca98fb",
  "rgb": {
    "r": 202,
    "g": 152,
    "b": 251
  },
  "hsl": {
    "h": 270.303,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.76369,
    "c": 0.14635,
    "h": 306.5
  },
  "luminance": 0.41978
}

Semantic roles & 50–950 ramp

primary
#CA98FB
secondary
#E5F6D5
accent
#E60072
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CA98FB

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

Preview Lab → · Contrast checker → · Palette generator →

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