#CA98F2#CA98F2

#CA98F2 is a light, vivid violet. Relative luminance 0.414; OKLCH L 76.0% C 0.135 H 309.0°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#CA98F2
RGBrgb(202, 152, 242)
HSLhsl(273, 78%, 77%)
HSVhsv(273, 37%, 95%)
CMYKcmyk(16.5%, 37.2%, 0%, 5.1%)
CIE-LABlab(70.47, 35.19, -38.09)
CIE-LCHlch(70.47, 51.86, 312.73°)
OKLaboklab(75.95% 0.0852 -0.1053)
OKLCHoklch(75.95% 0.135 309)
XYZxyz(51.6094, 41.4244, 89.2641)
Luminance0.4142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA98F2 #C0F298
analogous
#9D98F2 #CA98F2 #F298ED
triadic
#CA98F2 #F2CA98 #98F2CA
tetradic
#CA98F2 #F29D98 #C0F298 #98EDF2
square
#CA98F2 #F29D98 #C0F298 #98EDF2
split-complementary
#CA98F2 #EDF298 #98F29D
monochromatic
#922BE4 #AE62EB #CA98F2 #E6CEF9 #F1E4FC

Accessibility & contrast

On white

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

On black

9.28
#CA98F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA98F2
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA98F2#FFFFFF#000000##000000
##CA98F21.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#86AAF5
Deuteranopia (green-blind)
#91ADEF
Tritanopia (blue-blind)
#C5A5BA
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #ca98f2;
/* rgb */ color: rgb(202, 152, 242);
/* oklch */ color: oklch(76.0% 0.135 309.0);
Tailwind
colors: {
  custom: {
    50: '#dbb7f6',
    500: '#ca98f2',
    950: '#000000',
  },
}
SCSS
$custom: #ca98f2;
$custom-light: #dbb7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ca98f2",
  "rgb": {
    "r": 202,
    "g": 152,
    "b": 242
  },
  "hsl": {
    "h": 273.333,
    "s": 77.586,
    "l": 77.255
  },
  "oklch": {
    "l": 0.75953,
    "c": 0.13545,
    "h": 309
  },
  "luminance": 0.41424
}

Semantic roles & 50–950 ramp

primary
#CA98F2
secondary
#E4F3D8
accent
#DA0C67
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #CA98F2

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

Preview Lab → · Contrast checker → · Palette generator →

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