#CA98E4#CA98E4

#CA98E4 is a light, moderate violet. Relative luminance 0.406; OKLCH L 75.3% C 0.119 H 313.7°. Best body text is #000000 at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#CA98E4
RGBrgb(202, 152, 228)
HSLhsl(279, 58%, 75%)
HSVhsv(279, 33%, 89%)
CMYKcmyk(11.4%, 33.3%, 0%, 10.6%)
CIE-LABlab(69.91, 32.23, -31.31)
CIE-LCHlch(69.91, 44.93, 315.83°)
OKLaboklab(75.34% 0.082 -0.0859)
OKLCHoklch(75.34% 0.119 313.7)
XYZxyz(49.5867, 40.6153, 78.6111)
Luminance0.4061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA98E4 #B2E498
analogous
#A498E4 #CA98E4 #E498D8
triadic
#CA98E4 #E4CA98 #98E4CA
tetradic
#CA98E4 #E4A498 #B2E498 #98D8E4
square
#CA98E4 #E4A498 #B2E498 #98D8E4
split-complementary
#CA98E4 #D8E498 #98E4A4
monochromatic
#9837CB #B168D7 #CA98E4 #E3C8F1 #F3E7F9

Accessibility & contrast

On white

2.30
#CA98E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.12
#CA98E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA98E4
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA98E4#FFFFFF#000000##000000
##CA98E41.002.309.129.12
#FFFFFF2.301.0021.0021.00
#0000009.1221.001.001.00
##0000009.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CA8E7
Deuteranopia (green-blind)
#97ACE2
Tritanopia (blue-blind)
#C8A2B4
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #ca98e4;
/* rgb */ color: rgb(202, 152, 228);
/* oklch */ color: oklch(75.3% 0.119 313.7);
Tailwind
colors: {
  custom: {
    50: '#dbb7ec',
    500: '#ca98e4',
    950: '#000000',
  },
}
SCSS
$custom: #ca98e4;
$custom-light: #dbb7ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ca98e4",
  "rgb": {
    "r": 202,
    "g": 152,
    "b": 228
  },
  "hsl": {
    "h": 279.474,
    "s": 58.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.75337,
    "c": 0.11874,
    "h": 313.7
  },
  "luminance": 0.40614
}

Semantic roles & 50–950 ramp

primary
#CA98E4
secondary
#E2F0DB
accent
#C61F58
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CA98E4

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

Preview Lab → · Contrast checker → · Palette generator →

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