#CA98EB#CA98EB

#CA98EB is a light, vivid violet. Relative luminance 0.410; OKLCH L 75.6% C 0.127 H 311.2°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#CA98EB
RGBrgb(202, 152, 235)
HSLhsl(276, 67%, 76%)
HSVhsv(276, 35%, 92%)
CMYKcmyk(14%, 35.3%, 0%, 7.8%)
CIE-LABlab(70.18, 33.69, -34.71)
CIE-LCHlch(70.18, 48.38, 314.14°)
OKLaboklab(75.64% 0.0836 -0.0956)
OKLCHoklch(75.64% 0.127 311.2)
XYZxyz(50.5781, 41.0119, 83.8328)
Luminance0.4101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA98EB #B9EB98
analogous
#A098EB #CA98EB #EB98E2
triadic
#CA98EB #EBCA98 #98EBCA
tetradic
#CA98EB #EBA098 #B9EB98 #98E2EB
square
#CA98EB #EBA098 #B9EB98 #98E2EB
split-complementary
#CA98EB #E2EB98 #98EBA0
monochromatic
#9532D7 #B065E1 #CA98EB #E4CBF5 #F2E5FA

Accessibility & contrast

On white

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

On black

9.20
#CA98EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA98EB
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA98EB#FFFFFF#000000##000000
##CA98EB1.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A9EE
Deuteranopia (green-blind)
#94ADE9
Tritanopia (blue-blind)
#C7A3B7
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #ca98eb;
/* rgb */ color: rgb(202, 152, 235);
/* oklch */ color: oklch(75.6% 0.127 311.2);
Tailwind
colors: {
  custom: {
    50: '#dbb7f1',
    500: '#ca98eb',
    950: '#000000',
  },
}
SCSS
$custom: #ca98eb;
$custom-light: #dbb7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca98eb",
  "rgb": {
    "r": 202,
    "g": 152,
    "b": 235
  },
  "hsl": {
    "h": 276.145,
    "s": 67.48,
    "l": 75.882
  },
  "oklch": {
    "l": 0.7564,
    "c": 0.12704,
    "h": 311.2
  },
  "luminance": 0.41011
}

Semantic roles & 50–950 ramp

primary
#CA98EB
secondary
#E3F2D9
accent
#CF1660
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CA98EB

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

Preview Lab → · Contrast checker → · Palette generator →

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