#CB98FB#CB98FB

#CB98FB is a light, vivid violet. Relative luminance 0.421; OKLCH L 76.5% C 0.147 H 306.9°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#CB98FB
RGBrgb(203, 152, 251)
HSLhsl(271, 93%, 79%)
HSVhsv(271, 39%, 98%)
CMYKcmyk(19.1%, 39.4%, 0%, 1.6%)
CIE-LABlab(70.95, 37.44, -42.24)
CIE-LCHlch(70.95, 56.44, 311.55°)
OKLaboklab(76.46% 0.0882 -0.1172)
OKLCHoklch(76.46% 0.147 306.9)
XYZxyz(53.2660, 42.1185, 96.5716)
Luminance0.4212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB98FB #C8FB98
analogous
#9A98FB #CB98FB #FB98FA
triadic
#CB98FB #FBCB98 #98FBCB
tetradic
#CB98FB #FB9A98 #C8FB98 #98FAFB
square
#CB98FB #FB9A98 #C8FB98 #98FAFB
split-complementary
#CB98FB #FAFB98 #98FB9A
monochromatic
#9022F6 #AD5DF9 #CB98FB #E9D3FD #F0E2FE

Accessibility & contrast

On white

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

On black

9.42
#CB98FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB98FB
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB98FB#FFFFFF#000000##000000
##CB98FB1.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cb98fb;
/* rgb */ color: rgb(203, 152, 251);
/* oklch */ color: oklch(76.5% 0.147 306.9);
Tailwind
colors: {
  custom: {
    50: '#dcb7fd',
    500: '#cb98fb',
    950: '#000000',
  },
}
SCSS
$custom: #cb98fb;
$custom-light: #dcb7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb98fb",
  "rgb": {
    "r": 203,
    "g": 152,
    "b": 251
  },
  "hsl": {
    "h": 270.909,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.76464,
    "c": 0.14666,
    "h": 306.9
  },
  "luminance": 0.42118
}

Semantic roles & 50–950 ramp

primary
#CB98FB
secondary
#E5F6D5
accent
#E6006F
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CB98FB

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

Preview Lab → · Contrast checker → · Palette generator →

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