#B797DF#B797DF

#B797DF is a light, moderate violet. Relative luminance 0.375; OKLCH L 73.1% C 0.107 H 304.3°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#B797DF
RGBrgb(183, 151, 223)
HSLhsl(267, 53%, 73%)
HSVhsv(267, 32%, 87%)
CMYKcmyk(17.9%, 32.3%, 0%, 12.5%)
CIE-LABlab(67.67, 25.88, -32.15)
CIE-LCHlch(67.67, 41.27, 308.83°)
OKLaboklab(73.15% 0.0604 -0.0886)
OKLCHoklch(73.15% 0.107 304.3)
XYZxyz(43.9116, 37.5283, 74.7281)
Luminance0.3753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797DF #BFDF97
analogous
#979BDF #B797DF #DB97DF
triadic
#B797DF #DFB797 #97DFB7
tetradic
#B797DF #DF979B #BFDF97 #97DFDB
square
#B797DF #DF979B #BFDF97 #97DFDB
split-complementary
#B797DF #DFDB97 #9BDF97
monochromatic
#763BC0 #9768D1 #B797DF #D7C6ED #EFE8F8

Accessibility & contrast

On white

2.47
#B797DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#B797DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797DF
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797DF#FFFFFF#000000##000000
##B797DF1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A4E2
Deuteranopia (green-blind)
#8EA5DD
Tritanopia (blue-blind)
#B1A2B1
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b797df;
/* rgb */ color: rgb(183, 151, 223);
/* oklch */ color: oklch(73.1% 0.107 304.3);
Tailwind
colors: {
  custom: {
    50: '#cdb6e9',
    500: '#b797df',
    950: '#000000',
  },
}
SCSS
$custom: #b797df;
$custom-light: #cdb6e9;
$custom-dark: #000000;
JSON
{
  "hex": "#b797df",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 223
  },
  "hsl": {
    "h": 266.667,
    "s": 52.941,
    "l": 73.333
  },
  "oklch": {
    "l": 0.73148,
    "c": 0.10723,
    "h": 304.3
  },
  "luminance": 0.37528
}

Semantic roles & 50–950 ramp

primary
#B797DF
secondary
#E7EFDC
accent
#C0257B
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B797DF

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

Preview Lab → · Contrast checker → · Palette generator →

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