#CB98EC#CB98EC

#CB98EC is a light, vivid violet. Relative luminance 0.412; OKLCH L 75.8% C 0.129 H 311.4°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#CB98EC
RGBrgb(203, 152, 236)
HSLhsl(276, 69%, 76%)
HSVhsv(276, 36%, 93%)
CMYKcmyk(14%, 35.6%, 0%, 7.5%)
CIE-LABlab(70.32, 34.21, -35.04)
CIE-LCHlch(70.32, 48.97, 314.31°)
OKLaboklab(75.78% 0.085 -0.0965)
OKLCHoklch(75.78% 0.129 311.4)
XYZxyz(50.9945, 41.2099, 84.6085)
Luminance0.4121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB98EC #B9EC98
analogous
#A198EC #CB98EC #EC98E3
triadic
#CB98EC #ECCB98 #98ECCB
tetradic
#CB98EC #ECA198 #B9EC98 #98E3EC
square
#CB98EC #ECA198 #B9EC98 #98E3EC
split-complementary
#CB98EC #E3EC98 #98ECA1
monochromatic
#9731D9 #B164E2 #CB98EC #E5CCF6 #F2E5FA

Accessibility & contrast

On white

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

On black

9.24
#CB98EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB98EC
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB98EC#FFFFFF#000000##000000
##CB98EC1.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A9EF
Deuteranopia (green-blind)
#95ADEA
Tritanopia (blue-blind)
#C8A4B7
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cb98ec;
/* rgb */ color: rgb(203, 152, 236);
/* oklch */ color: oklch(75.8% 0.129 311.4);
Tailwind
colors: {
  custom: {
    50: '#dcb7f2',
    500: '#cb98ec',
    950: '#000000',
  },
}
SCSS
$custom: #cb98ec;
$custom-light: #dcb7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb98ec",
  "rgb": {
    "r": 203,
    "g": 152,
    "b": 236
  },
  "hsl": {
    "h": 276.429,
    "s": 68.852,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75781,
    "c": 0.12863,
    "h": 311.4
  },
  "luminance": 0.41209
}

Semantic roles & 50–950 ramp

primary
#CB98EC
secondary
#E3F2D9
accent
#D1155F
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CB98EC

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

Preview Lab → · Contrast checker → · Palette generator →

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