#CB98EF#CB98EF

#CB98EF is a light, vivid violet. Relative luminance 0.414; OKLCH L 75.9% C 0.132 H 310.4°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#CB98EF
RGBrgb(203, 152, 239)
HSLhsl(275, 73%, 77%)
HSVhsv(275, 36%, 94%)
CMYKcmyk(15.1%, 36.4%, 0%, 6.3%)
CIE-LABlab(70.45, 34.84, -36.49)
CIE-LCHlch(70.45, 50.45, 313.68°)
OKLaboklab(75.91% 0.0857 -0.1007)
OKLCHoklch(75.91% 0.132 310.4)
XYZxyz(51.4340, 41.3857, 86.9233)
Luminance0.4138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB98EF #BCEF98
analogous
#A098EF #CB98EF #EF98E8
triadic
#CB98EF #EFCB98 #98EFCB
tetradic
#CB98EF #EFA098 #BCEF98 #98E8EF
square
#CB98EF #EFA098 #BCEF98 #98E8EF
split-complementary
#CB98EF #E8EF98 #98EFA0
monochromatic
#962EDF #B063E7 #CB98EF #E6CDF7 #F2E5FB

Accessibility & contrast

On white

2.26
#CB98EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#CB98EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB98EF
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB98EF#FFFFFF#000000##000000
##CB98EF1.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cb98ef;
/* rgb */ color: rgb(203, 152, 239);
/* oklch */ color: oklch(75.9% 0.132 310.4);
Tailwind
colors: {
  custom: {
    50: '#dcb7f4',
    500: '#cb98ef',
    950: '#000000',
  },
}
SCSS
$custom: #cb98ef;
$custom-light: #dcb7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cb98ef",
  "rgb": {
    "r": 203,
    "g": 152,
    "b": 239
  },
  "hsl": {
    "h": 275.172,
    "s": 73.109,
    "l": 76.667
  },
  "oklch": {
    "l": 0.75914,
    "c": 0.13221,
    "h": 310.4
  },
  "luminance": 0.41385
}

Semantic roles & 50–950 ramp

primary
#CB98EF
secondary
#E3F3D8
accent
#D51062
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CB98EF

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

Preview Lab → · Contrast checker → · Palette generator →

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