#CB98FC#CB98FC

#CB98FC is a light, vivid violet. Relative luminance 0.422; OKLCH L 76.5% C 0.148 H 306.7°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#CB98FC
RGBrgb(203, 152, 252)
HSLhsl(271, 94%, 79%)
HSVhsv(271, 40%, 99%)
CMYKcmyk(19.4%, 39.7%, 0%, 1.2%)
CIE-LABlab(71.00, 37.66, -42.72)
CIE-LCHlch(71.00, 56.94, 311.40°)
OKLaboklab(76.51% 0.0884 -0.1186)
OKLCHoklch(76.51% 0.148 306.7)
XYZxyz(53.4241, 42.1817, 97.4040)
Luminance0.4218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB98FC #C9FC98
analogous
#9998FC #CB98FC #FC98FB
triadic
#CB98FC #FCCB98 #98FCCB
tetradic
#CB98FC #FC9998 #C9FC98 #98FBFC
square
#CB98FC #FC9998 #C9FC98 #98FBFC
split-complementary
#CB98FC #FBFC98 #98FC99
monochromatic
#8F21F9 #AD5DFA #CB98FC #E9D3FE #F0E1FE

Accessibility & contrast

On white

2.23
#CB98FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.44
#CB98FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB98FC
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB98FC#FFFFFF#000000##000000
##CB98FC1.002.239.449.44
#FFFFFF2.231.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ACFF
Deuteranopia (green-blind)
#8DAEF9
Tritanopia (blue-blind)
#C4A8BE
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cb98fc;
/* rgb */ color: rgb(203, 152, 252);
/* oklch */ color: oklch(76.5% 0.148 306.7);
Tailwind
colors: {
  custom: {
    50: '#dcb7fd',
    500: '#cb98fc',
    950: '#000000',
  },
}
SCSS
$custom: #cb98fc;
$custom-light: #dcb7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb98fc",
  "rgb": {
    "r": 203,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 270.6,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76512,
    "c": 0.14787,
    "h": 306.7
  },
  "luminance": 0.42181
}

Semantic roles & 50–950 ramp

primary
#CB98FC
secondary
#E5F6D5
accent
#E60070
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CB98FC

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

Preview Lab → · Contrast checker → · Palette generator →

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