#B797CD#B797CD

#B797CD is a light, moderate violet. Relative luminance 0.366; OKLCH L 72.4% C 0.084 H 311.2°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#B797CD
RGBrgb(183, 151, 205)
HSLhsl(276, 35%, 70%)
HSVhsv(276, 26%, 80%)
CMYKcmyk(10.7%, 26.3%, 0%, 19.6%)
CIE-LABlab(66.98, 21.98, -23.25)
CIE-LCHlch(66.98, 31.99, 313.39°)
OKLaboklab(72.39% 0.0554 -0.0634)
OKLCHoklch(72.39% 0.084 311.2)
XYZxyz(41.6126, 36.6087, 62.6198)
Luminance0.3661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797CD #ADCD97
analogous
#9C97CD #B797CD #CD97C8
triadic
#B797CD #CDB797 #97CDB7
tetradic
#B797CD #CD9C97 #ADCD97 #97C8CD
square
#B797CD #CD9C97 #ADCD97 #97C8CD
split-complementary
#B797CD #C8CD97 #97CD9C
monochromatic
#7C4C9E #9A6EB9 #B797CD #D4C0E1 #F0EAF5

Accessibility & contrast

On white

2.52
#B797CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#B797CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797CD
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797CD#FFFFFF#000000##000000
##B797CD1.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FA1CF
Deuteranopia (green-blind)
#95A4CB
Tritanopia (blue-blind)
#B59EAA
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b797cd;
/* rgb */ color: rgb(183, 151, 205);
/* oklch */ color: oklch(72.4% 0.084 311.2);
Tailwind
colors: {
  custom: {
    50: '#cdb5dc',
    500: '#b797cd',
    950: '#000000',
  },
}
SCSS
$custom: #b797cd;
$custom-light: #cdb5dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b797cd",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 205
  },
  "hsl": {
    "h": 275.556,
    "s": 35.065,
    "l": 69.804
  },
  "oklch": {
    "l": 0.72393,
    "c": 0.08421,
    "h": 311.2
  },
  "luminance": 0.36608
}

Semantic roles & 50–950 ramp

primary
#B797CD
secondary
#DEE8D8
accent
#AE3868
background
#FCFBFD
surface
#F9F6FB
border
#D2D0D4
text
#131115
muted
#828083

Preview Lab

Preview with #B797CD

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

Preview Lab → · Contrast checker → · Palette generator →

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