#CB97F2#CB97F2

#CB97F2 is a light, vivid violet. Relative luminance 0.412; OKLCH L 75.9% C 0.137 H 309.7°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#CB97F2
RGBrgb(203, 151, 242)
HSLhsl(274, 78%, 77%)
HSVhsv(274, 38%, 95%)
CMYKcmyk(16.1%, 37.6%, 0%, 5.1%)
CIE-LABlab(70.34, 36.03, -38.29)
CIE-LCHlch(70.34, 52.57, 313.26°)
OKLaboklab(75.88% 0.0878 -0.1058)
OKLCHoklch(75.88% 0.137 309.7)
XYZxyz(51.7193, 41.2412, 89.2229)
Luminance0.4124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB97F2 #BEF297
analogous
#9E97F2 #CB97F2 #F297EB
triadic
#CB97F2 #F2CB97 #97F2CB
tetradic
#CB97F2 #F29E97 #BEF297 #97EBF2
square
#CB97F2 #F29E97 #BEF297 #97EBF2
split-complementary
#CB97F2 #EBF297 #97F29E
monochromatic
#952AE4 #B061EB #CB97F2 #E6CDF9 #F1E4FC

Accessibility & contrast

On white

2.27
#CB97F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#CB97F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB97F2
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB97F2#FFFFFF#000000##000000
##CB97F21.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#85AAF5
Deuteranopia (green-blind)
#91ADEF
Tritanopia (blue-blind)
#C6A4B9
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cb97f2;
/* rgb */ color: rgb(203, 151, 242);
/* oklch */ color: oklch(75.9% 0.137 309.7);
Tailwind
colors: {
  custom: {
    50: '#dcb6f6',
    500: '#cb97f2',
    950: '#000000',
  },
}
SCSS
$custom: #cb97f2;
$custom-light: #dcb6f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cb97f2",
  "rgb": {
    "r": 203,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 274.286,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.75879,
    "c": 0.13748,
    "h": 309.7
  },
  "luminance": 0.41241
}

Semantic roles & 50–950 ramp

primary
#CB97F2
secondary
#E4F3D8
accent
#DA0B64
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #CB97F2

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

Preview Lab → · Contrast checker → · Palette generator →

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