#CB98FD#CB98FD

#CB98FD is a light, vivid violet. Relative luminance 0.422; OKLCH L 76.6% C 0.149 H 306.4°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#CB98FD
RGBrgb(203, 152, 253)
HSLhsl(270, 96%, 79%)
HSVhsv(270, 40%, 99%)
CMYKcmyk(19.8%, 39.9%, 0%, 0.8%)
CIE-LABlab(71.04, 37.88, -43.19)
CIE-LCHlch(71.04, 57.45, 311.25°)
OKLaboklab(76.56% 0.0885 -0.1199)
OKLCHoklch(76.56% 0.149 306.4)
XYZxyz(53.5829, 42.2452, 98.2408)
Luminance0.4224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB98FD #CAFD98
analogous
#9998FD #CB98FD #FD98FC
triadic
#CB98FD #FDCB98 #98FDCB
tetradic
#CB98FD #FD9998 #CAFD98 #98FCFD
square
#CB98FD #FD9998 #CAFD98 #98FCFD
split-complementary
#CB98FD #FCFD98 #98FD99
monochromatic
#8E20FB #AD5CFC #CB98FD #E9D4FE #F0E1FE

Accessibility & contrast

On white

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

On black

9.45
#CB98FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB98FD
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB98FD#FFFFFF#000000##000000
##CB98FD1.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ACFF
Deuteranopia (green-blind)
#8DAEFA
Tritanopia (blue-blind)
#C4A8BF
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cb98fd;
/* rgb */ color: rgb(203, 152, 253);
/* oklch */ color: oklch(76.6% 0.149 306.4);
Tailwind
colors: {
  custom: {
    50: '#dcb7fe',
    500: '#cb98fd',
    950: '#000000',
  },
}
SCSS
$custom: #cb98fd;
$custom-light: #dcb7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cb98fd",
  "rgb": {
    "r": 203,
    "g": 152,
    "b": 253
  },
  "hsl": {
    "h": 270.297,
    "s": 96.19,
    "l": 79.412
  },
  "oklch": {
    "l": 0.76559,
    "c": 0.14909,
    "h": 306.4
  },
  "luminance": 0.42245
}

Semantic roles & 50–950 ramp

primary
#CB98FD
secondary
#E5F7D4
accent
#E60072
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CB98FD

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

Preview Lab → · Contrast checker → · Palette generator →

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