#CB98EA#CB98EA

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

Color values

HEX#CB98EA
RGBrgb(203, 152, 234)
HSLhsl(277, 66%, 76%)
HSVhsv(277, 35%, 92%)
CMYKcmyk(13.2%, 35%, 0%, 8.2%)
CIE-LABlab(70.24, 33.78, -34.07)
CIE-LCHlch(70.24, 47.98, 314.76°)
OKLaboklab(75.69% 0.0846 -0.0938)
OKLCHoklch(75.69% 0.126 312)
XYZxyz(50.7056, 41.0943, 83.0868)
Luminance0.4109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB98EA #B7EA98
analogous
#A298EA #CB98EA #EA98E0
triadic
#CB98EA #EACB98 #98EACB
tetradic
#CB98EA #EAA298 #B7EA98 #98E0EA
square
#CB98EA #EAA298 #B7EA98 #98E0EA
split-complementary
#CB98EA #E0EA98 #98EAA2
monochromatic
#9832D5 #B165E0 #CB98EA #E5CBF4 #F2E6FA

Accessibility & contrast

On white

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

On black

9.22
#CB98EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB98EA
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB98EA#FFFFFF#000000##000000
##CB98EA1.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AA9ED
Deuteranopia (green-blind)
#95ADE8
Tritanopia (blue-blind)
#C8A3B6
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cb98ea;
/* rgb */ color: rgb(203, 152, 234);
/* oklch */ color: oklch(75.7% 0.126 312.0);
Tailwind
colors: {
  custom: {
    50: '#dcb7f1',
    500: '#cb98ea',
    950: '#000000',
  },
}
SCSS
$custom: #cb98ea;
$custom-light: #dcb7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb98ea",
  "rgb": {
    "r": 203,
    "g": 152,
    "b": 234
  },
  "hsl": {
    "h": 277.317,
    "s": 66.129,
    "l": 75.686
  },
  "oklch": {
    "l": 0.75693,
    "c": 0.12626,
    "h": 312
  },
  "luminance": 0.41093
}

Semantic roles & 50–950 ramp

primary
#CB98EA
secondary
#E3F1DA
accent
#CE185C
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CB98EA

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

Preview Lab → · Contrast checker → · Palette generator →

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