#CB97F7#CB97F7

#CB97F7 is a light, vivid violet. Relative luminance 0.415; OKLCH L 76.1% C 0.143 H 308.2°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#CB97F7
RGBrgb(203, 151, 247)
HSLhsl(273, 86%, 78%)
HSVhsv(273, 39%, 97%)
CMYKcmyk(17.8%, 38.9%, 0%, 3.1%)
CIE-LABlab(70.56, 37.11, -40.68)
CIE-LCHlch(70.56, 55.06, 312.37°)
OKLaboklab(76.11% 0.0888 -0.1127)
OKLCHoklch(76.11% 0.143 308.2)
XYZxyz(52.4805, 41.5457, 93.2321)
Luminance0.4154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB97F7 #C3F797
analogous
#9B97F7 #CB97F7 #F797F3
triadic
#CB97F7 #F7CB97 #97F7CB
tetradic
#CB97F7 #F79B97 #C3F797 #97F3F7
square
#CB97F7 #F79B97 #C3F797 #97F3F7
split-complementary
#CB97F7 #F3F797 #97F79B
monochromatic
#9225EE #AF5EF3 #CB97F7 #E7D0FB #F1E3FD

Accessibility & contrast

On white

2.26
#CB97F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.31
#CB97F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB97F7
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB97F7#FFFFFF#000000##000000
##CB97F71.002.269.319.31
#FFFFFF2.261.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#83AAFB
Deuteranopia (green-blind)
#8FADF4
Tritanopia (blue-blind)
#C5A5BB
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cb97f7;
/* rgb */ color: rgb(203, 151, 247);
/* oklch */ color: oklch(76.1% 0.143 308.2);
Tailwind
colors: {
  custom: {
    50: '#dcb6fa',
    500: '#cb97f7',
    950: '#000000',
  },
}
SCSS
$custom: #cb97f7;
$custom-light: #dcb6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cb97f7",
  "rgb": {
    "r": 203,
    "g": 151,
    "b": 247
  },
  "hsl": {
    "h": 272.5,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.76109,
    "c": 0.14348,
    "h": 308.2
  },
  "luminance": 0.41545
}

Semantic roles & 50–950 ramp

primary
#CB97F7
secondary
#E4F5D6
accent
#E20369
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CB97F7

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

Preview Lab → · Contrast checker → · Palette generator →

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