#CA98EC#CA98EC

#CA98EC is a light, vivid violet. Relative luminance 0.411; OKLCH L 75.7% C 0.128 H 310.8°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#CA98EC
RGBrgb(202, 152, 236)
HSLhsl(276, 69%, 76%)
HSVhsv(276, 36%, 93%)
CMYKcmyk(14.4%, 35.6%, 0%, 7.5%)
CIE-LABlab(70.22, 33.90, -35.20)
CIE-LCHlch(70.22, 48.87, 313.93°)
OKLaboklab(75.68% 0.0839 -0.097)
OKLCHoklch(75.68% 0.128 310.8)
XYZxyz(50.7230, 41.0699, 84.5958)
Luminance0.4107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA98EC #BAEC98
analogous
#A098EC #CA98EC #EC98E4
triadic
#CA98EC #ECCA98 #98ECCA
tetradic
#CA98EC #ECA098 #BAEC98 #98E4EC
square
#CA98EC #ECA098 #BAEC98 #98E4EC
split-complementary
#CA98EC #E4EC98 #98ECA0
monochromatic
#9531D9 #AF64E2 #CA98EC #E5CCF6 #F2E5FA

Accessibility & contrast

On white

2.28
#CA98EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.21
#CA98EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA98EC
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA98EC#FFFFFF#000000##000000
##CA98EC1.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A9EF
Deuteranopia (green-blind)
#94ADEA
Tritanopia (blue-blind)
#C6A4B7
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #ca98ec;
/* rgb */ color: rgb(202, 152, 236);
/* oklch */ color: oklch(75.7% 0.128 310.8);
Tailwind
colors: {
  custom: {
    50: '#dbb7f2',
    500: '#ca98ec',
    950: '#000000',
  },
}
SCSS
$custom: #ca98ec;
$custom-light: #dbb7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca98ec",
  "rgb": {
    "r": 202,
    "g": 152,
    "b": 236
  },
  "hsl": {
    "h": 275.714,
    "s": 68.852,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75684,
    "c": 0.12823,
    "h": 310.8
  },
  "luminance": 0.41069
}

Semantic roles & 50–950 ramp

primary
#CA98EC
secondary
#E3F2D9
accent
#D11561
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CA98EC

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

Preview Lab → · Contrast checker → · Palette generator →

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