#CB98EE#CB98EE

#CB98EE is a light, vivid violet. Relative luminance 0.413; OKLCH L 75.9% C 0.131 H 310.7°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#CB98EE
RGBrgb(203, 152, 238)
HSLhsl(276, 72%, 76%)
HSVhsv(276, 36%, 93%)
CMYKcmyk(14.7%, 36.1%, 0%, 6.7%)
CIE-LABlab(70.40, 34.63, -36.01)
CIE-LCHlch(70.40, 49.96, 313.88°)
OKLaboklab(75.87% 0.0855 -0.0993)
OKLCHoklch(75.87% 0.131 310.7)
XYZxyz(51.2867, 41.3267, 86.1474)
Luminance0.4133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB98EE #BBEE98
analogous
#A098EE #CB98EE #EE98E6
triadic
#CB98EE #EECB98 #98EECB
tetradic
#CB98EE #EEA098 #BBEE98 #98E6EE
square
#CB98EE #EEA098 #BBEE98 #98E6EE
split-complementary
#CB98EE #E6EE98 #98EEA0
monochromatic
#962FDD #B063E5 #CB98EE #E6CDF7 #F2E5FB

Accessibility & contrast

On white

2.27
#CB98EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#CB98EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB98EE
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB98EE#FFFFFF#000000##000000
##CB98EE1.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#88AAF1
Deuteranopia (green-blind)
#94ADEC
Tritanopia (blue-blind)
#C7A4B8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cb98ee;
/* rgb */ color: rgb(203, 152, 238);
/* oklch */ color: oklch(75.9% 0.131 310.7);
Tailwind
colors: {
  custom: {
    50: '#dcb7f4',
    500: '#cb98ee',
    950: '#000000',
  },
}
SCSS
$custom: #cb98ee;
$custom-light: #dcb7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cb98ee",
  "rgb": {
    "r": 203,
    "g": 152,
    "b": 238
  },
  "hsl": {
    "h": 275.581,
    "s": 71.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.7587,
    "c": 0.13102,
    "h": 310.7
  },
  "luminance": 0.41326
}

Semantic roles & 50–950 ramp

primary
#CB98EE
secondary
#E3F2D9
accent
#D41261
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CB98EE

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

Preview Lab → · Contrast checker → · Palette generator →

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