#B797CB#B797CB

#B797CB is a light, moderate violet. Relative luminance 0.365; OKLCH L 72.3% C 0.082 H 312.2°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#B797CB
RGBrgb(183, 151, 203)
HSLhsl(277, 33%, 69%)
HSVhsv(277, 26%, 80%)
CMYKcmyk(9.9%, 25.6%, 0%, 20.4%)
CIE-LABlab(66.91, 21.56, -22.25)
CIE-LCHlch(66.91, 30.98, 314.10°)
OKLaboklab(72.31% 0.0549 -0.0606)
OKLCHoklch(72.31% 0.082 312.2)
XYZxyz(41.3727, 36.5128, 61.3565)
Luminance0.3651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797CB #ABCB97
analogous
#9D97CB #B797CB #CB97C5
triadic
#B797CB #CBB797 #97CBB7
tetradic
#B797CB #CB9D97 #ABCB97 #97C5CB
square
#B797CB #CB9D97 #ABCB97 #97C5CB
split-complementary
#B797CB #C5CB97 #97CB9D
monochromatic
#7D4D9A #9B6EB7 #B797CB #D3C0DF #EFE9F4

Accessibility & contrast

On white

2.53
#B797CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#B797CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797CB
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797CB#FFFFFF#000000##000000
##B797CB1.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FA1CD
Deuteranopia (green-blind)
#96A4C9
Tritanopia (blue-blind)
#B59DA9
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b797cb;
/* rgb */ color: rgb(183, 151, 203);
/* oklch */ color: oklch(72.3% 0.082 312.2);
Tailwind
colors: {
  custom: {
    50: '#cdb5db',
    500: '#b797cb',
    950: '#000000',
  },
}
SCSS
$custom: #b797cb;
$custom-light: #cdb5db;
$custom-dark: #000000;
JSON
{
  "hex": "#b797cb",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 203
  },
  "hsl": {
    "h": 276.923,
    "s": 33.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.72313,
    "c": 0.08171,
    "h": 312.2
  },
  "luminance": 0.36512
}

Semantic roles & 50–950 ramp

primary
#B797CB
secondary
#DDE6D7
accent
#AC3966
background
#FCFBFD
surface
#F9F6FA
border
#D2D0D3
text
#131115
muted
#828083

Preview Lab

Preview with #B797CB

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

Preview Lab → · Contrast checker → · Palette generator →

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