#B797D4#B797D4

#B797D4 is a light, moderate violet. Relative luminance 0.370; OKLCH L 72.7% C 0.093 H 308.1°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#B797D4
RGBrgb(183, 151, 212)
HSLhsl(271, 41%, 71%)
HSVhsv(271, 29%, 83%)
CMYKcmyk(13.7%, 28.8%, 0%, 16.9%)
CIE-LABlab(67.24, 23.47, -26.73)
CIE-LCHlch(67.24, 35.57, 311.28°)
OKLaboklab(72.68% 0.0575 -0.0732)
OKLCHoklch(72.68% 0.093 308.1)
XYZxyz(42.4765, 36.9543, 67.1698)
Luminance0.3695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797D4 #B4D497
analogous
#9897D4 #B797D4 #D497D2
triadic
#B797D4 #D4B797 #97D4B7
tetradic
#B797D4 #D49897 #B4D497 #97D2D4
square
#B797D4 #D49897 #B4D497 #97D2D4
split-complementary
#B797D4 #D2D497 #97D498
monochromatic
#7B46AA #996CC2 #B797D4 #D5C2E6 #F0E9F6

Accessibility & contrast

On white

2.50
#B797D4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#B797D4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797D4
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797D4#FFFFFF#000000##000000
##B797D41.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CA2D6
Deuteranopia (green-blind)
#93A4D2
Tritanopia (blue-blind)
#B39FAD
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b797d4;
/* rgb */ color: rgb(183, 151, 212);
/* oklch */ color: oklch(72.7% 0.093 308.1);
Tailwind
colors: {
  custom: {
    50: '#cdb5e1',
    500: '#b797d4',
    950: '#000000',
  },
}
SCSS
$custom: #b797d4;
$custom-light: #cdb5e1;
$custom-dark: #000000;
JSON
{
  "hex": "#b797d4",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 212
  },
  "hsl": {
    "h": 271.475,
    "s": 41.497,
    "l": 71.176
  },
  "oklch": {
    "l": 0.72679,
    "c": 0.09307,
    "h": 308.1
  },
  "luminance": 0.36954
}

Semantic roles & 50–950 ramp

primary
#B797D4
secondary
#E3EBDB
accent
#B53170
background
#FCFBFD
surface
#F9F6FB
border
#D2D0D4
text
#131115
muted
#828083

Preview Lab

Preview with #B797D4

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

Preview Lab → · Contrast checker → · Palette generator →

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