#CB98FF#CB98FF

#CB98FF is a light, vivid violet. Relative luminance 0.424; OKLCH L 76.7% C 0.152 H 305.9°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#CB98FF
RGBrgb(203, 152, 255)
HSLhsl(270, 100%, 80%)
HSVhsv(270, 40%, 100%)
CMYKcmyk(20.4%, 40.4%, 0%, 0%)
CIE-LABlab(71.13, 38.32, -44.14)
CIE-LCHlch(71.13, 58.45, 310.96°)
OKLaboklab(76.65% 0.0889 -0.1227)
OKLCHoklch(76.65% 0.152 305.9)
XYZxyz(53.9032, 42.3733, 99.9275)
Luminance0.4237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB98FF #CCFF98
analogous
#9898FF #CB98FF #FF98FF
triadic
#CB98FF #FFCB98 #98FFCB
tetradic
#CB98FF #FF9898 #CCFF98 #98FFFF
square
#CB98FF #FF9898 #CCFF98 #98FFFF
split-complementary
#CB98FF #FFFF98 #98FF98
monochromatic
#8D1EFF #AC5BFF #CB98FF #EAD5FF #F0E0FF

Accessibility & contrast

On white

2.22
#CB98FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#CB98FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB98FF
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB98FF#FFFFFF#000000##000000
##CB98FF1.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#80ACFF
Deuteranopia (green-blind)
#8CAEFC
Tritanopia (blue-blind)
#C3A8BF
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cb98ff;
/* rgb */ color: rgb(203, 152, 255);
/* oklch */ color: oklch(76.7% 0.152 305.9);
Tailwind
colors: {
  custom: {
    50: '#dcb7ff',
    500: '#cb98ff',
    950: '#000000',
  },
}
SCSS
$custom: #cb98ff;
$custom-light: #dcb7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cb98ff",
  "rgb": {
    "r": 203,
    "g": 152,
    "b": 255
  },
  "hsl": {
    "h": 269.709,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.76654,
    "c": 0.15151,
    "h": 305.9
  },
  "luminance": 0.42373
}

Semantic roles & 50–950 ramp

primary
#CB98FF
secondary
#E6F7D4
accent
#E60074
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CB98FF

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

Preview Lab → · Contrast checker → · Palette generator →

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