#CB97FA#CB97FA

#CB97FA is a light, vivid violet. Relative luminance 0.417; OKLCH L 76.2% C 0.147 H 307.4°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#CB97FA
RGBrgb(203, 151, 250)
HSLhsl(272, 91%, 79%)
HSVhsv(272, 40%, 98%)
CMYKcmyk(18.8%, 39.6%, 0%, 2%)
CIE-LABlab(70.69, 37.76, -42.11)
CIE-LCHlch(70.69, 56.56, 311.88°)
OKLaboklab(76.25% 0.0894 -0.1168)
OKLCHoklch(76.25% 0.147 307.4)
XYZxyz(52.9472, 41.7323, 95.6898)
Luminance0.4173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB97FA #C6FA97
analogous
#9997FA #CB97FA #FA97F8
triadic
#CB97FA #FACB97 #97FACB
tetradic
#CB97FA #FA9997 #C6FA97 #97F8FA
square
#CB97FA #FA9997 #C6FA97 #97F8FA
split-complementary
#CB97FA #F8FA97 #97FA99
monochromatic
#9122F4 #AE5DF7 #CB97FA #E8D1FD #F0E2FE

Accessibility & contrast

On white

2.25
#CB97FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#CB97FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB97FA
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB97FA#FFFFFF#000000##000000
##CB97FA1.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ABFE
Deuteranopia (green-blind)
#8DAEF7
Tritanopia (blue-blind)
#C4A6BD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cb97fa;
/* rgb */ color: rgb(203, 151, 250);
/* oklch */ color: oklch(76.2% 0.147 307.4);
Tailwind
colors: {
  custom: {
    50: '#dcb6fc',
    500: '#cb97fa',
    950: '#000000',
  },
}
SCSS
$custom: #cb97fa;
$custom-light: #dcb6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cb97fa",
  "rgb": {
    "r": 203,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 271.515,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.76249,
    "c": 0.14709,
    "h": 307.4
  },
  "luminance": 0.41732
}

Semantic roles & 50–950 ramp

primary
#CB97FA
secondary
#E5F6D5
accent
#E6006D
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CB97FA

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

Preview Lab → · Contrast checker → · Palette generator →

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