#B797DC#B797DC

#B797DC is a light, moderate violet. Relative luminance 0.374; OKLCH L 73.0% C 0.103 H 305.2°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#B797DC
RGBrgb(183, 151, 220)
HSLhsl(268, 50%, 73%)
HSVhsv(268, 31%, 86%)
CMYKcmyk(16.8%, 31.4%, 0%, 13.7%)
CIE-LABlab(67.55, 25.21, -30.68)
CIE-LCHlch(67.55, 39.71, 309.41°)
OKLaboklab(73.02% 0.0596 -0.0844)
OKLCHoklch(73.02% 0.103 305.2)
XYZxyz(43.5108, 37.3680, 72.6168)
Luminance0.3737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797DC #BCDC97
analogous
#9799DC #B797DC #D997DC
triadic
#B797DC #DCB797 #97DCB7
tetradic
#B797DC #DC9799 #BCDC97 #97DCD9
square
#B797DC #DC9799 #BCDC97 #97DCD9
split-complementary
#B797DC #DCD997 #99DC97
monochromatic
#783FBA #9769CD #B797DC #D7C5EB #EFE8F7

Accessibility & contrast

On white

2.48
#B797DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.47
#B797DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797DC
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797DC#FFFFFF#000000##000000
##B797DC1.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A3DF
Deuteranopia (green-blind)
#90A5DA
Tritanopia (blue-blind)
#B2A1B0
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b797dc;
/* rgb */ color: rgb(183, 151, 220);
/* oklch */ color: oklch(73.0% 0.103 305.2);
Tailwind
colors: {
  custom: {
    50: '#cdb6e7',
    500: '#b797dc',
    950: '#000000',
  },
}
SCSS
$custom: #b797dc;
$custom-light: #cdb6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b797dc",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 267.826,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.73018,
    "c": 0.10336,
    "h": 305.2
  },
  "luminance": 0.37368
}

Semantic roles & 50–950 ramp

primary
#B797DC
secondary
#E6EEDD
accent
#BD2978
background
#FCFBFE
surface
#F9F6FC
border
#D2D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B797DC

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

Preview Lab → · Contrast checker → · Palette generator →

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