#CB98EB#CB98EB

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

Color values

HEX#CB98EB
RGBrgb(203, 152, 235)
HSLhsl(277, 67%, 76%)
HSVhsv(277, 35%, 92%)
CMYKcmyk(13.6%, 35.3%, 0%, 7.8%)
CIE-LABlab(70.28, 33.99, -34.55)
CIE-LCHlch(70.28, 48.47, 314.53°)
OKLaboklab(75.74% 0.0848 -0.0951)
OKLCHoklch(75.74% 0.127 311.7)
XYZxyz(50.8497, 41.1519, 83.8455)
Luminance0.4115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB98EB #B8EB98
analogous
#A198EB #CB98EB #EB98E2
triadic
#CB98EB #EBCB98 #98EBCB
tetradic
#CB98EB #EBA198 #B8EB98 #98E2EB
square
#CB98EB #EBA198 #B8EB98 #98E2EB
split-complementary
#CB98EB #E2EB98 #98EBA1
monochromatic
#9732D7 #B165E1 #CB98EB #E5CBF5 #F2E5FA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CB98EB#FFFFFF#000000##000000
##CB98EB1.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)
#89A9EE
Deuteranopia (green-blind)
#95ADE9
Tritanopia (blue-blind)
#C8A3B7
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cb98eb;
/* rgb */ color: rgb(203, 152, 235);
/* oklch */ color: oklch(75.7% 0.127 311.7);
Tailwind
colors: {
  custom: {
    50: '#dcb7f1',
    500: '#cb98eb',
    950: '#000000',
  },
}
SCSS
$custom: #cb98eb;
$custom-light: #dcb7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb98eb",
  "rgb": {
    "r": 203,
    "g": 152,
    "b": 235
  },
  "hsl": {
    "h": 276.867,
    "s": 67.48,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75737,
    "c": 0.12744,
    "h": 311.7
  },
  "luminance": 0.41151
}

Semantic roles & 50–950 ramp

primary
#CB98EB
secondary
#E3F2D9
accent
#CF165E
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CB98EB

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

Preview Lab → · Contrast checker → · Palette generator →

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