#CA98ED#CA98ED

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

Color values

HEX#CA98ED
RGBrgb(202, 152, 237)
HSLhsl(275, 70%, 76%)
HSVhsv(275, 36%, 93%)
CMYKcmyk(14.8%, 35.9%, 0%, 7.1%)
CIE-LABlab(70.27, 34.12, -35.68)
CIE-LCHlch(70.27, 49.37, 313.71°)
OKLaboklab(75.73% 0.0841 -0.0984)
OKLCHoklch(75.73% 0.129 310.5)
XYZxyz(50.8687, 41.1281, 85.3631)
Luminance0.4113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA98ED #BBED98
analogous
#A098ED #CA98ED #ED98E6
triadic
#CA98ED #EDCA98 #98EDCA
tetradic
#CA98ED #EDA098 #BBED98 #98E6ED
square
#CA98ED #EDA098 #BBED98 #98E6ED
split-complementary
#CA98ED #E6ED98 #98EDA0
monochromatic
#9430DB #AF64E4 #CA98ED #E5CCF6 #F2E5FA

Accessibility & contrast

On white

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

On black

9.23
#CA98ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA98ED
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA98ED#FFFFFF#000000##000000
##CA98ED1.002.289.239.23
#FFFFFF2.281.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A9F0
Deuteranopia (green-blind)
#94ADEB
Tritanopia (blue-blind)
#C6A4B8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #ca98ed;
/* rgb */ color: rgb(202, 152, 237);
/* oklch */ color: oklch(75.7% 0.129 310.5);
Tailwind
colors: {
  custom: {
    50: '#dbb7f3',
    500: '#ca98ed',
    950: '#000000',
  },
}
SCSS
$custom: #ca98ed;
$custom-light: #dbb7f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ca98ed",
  "rgb": {
    "r": 202,
    "g": 152,
    "b": 237
  },
  "hsl": {
    "h": 275.294,
    "s": 70.248,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75728,
    "c": 0.12943,
    "h": 310.5
  },
  "luminance": 0.41127
}

Semantic roles & 50–950 ramp

primary
#CA98ED
secondary
#E3F2D9
accent
#D21362
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CA98ED

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

Preview Lab → · Contrast checker → · Palette generator →

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