#B397DB#B397DB

#B397DB is a light, moderate violet. Relative luminance 0.368; OKLCH L 72.6% C 0.101 H 302.9°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#B397DB
RGBrgb(179, 151, 219)
HSLhsl(265, 49%, 73%)
HSVhsv(265, 31%, 86%)
CMYKcmyk(18.3%, 31.1%, 0%, 14.1%)
CIE-LABlab(67.15, 23.76, -30.78)
CIE-LCHlch(67.15, 38.88, 307.66°)
OKLaboklab(72.61% 0.0548 -0.0848)
OKLCHoklch(72.61% 0.101 302.9)
XYZxyz(42.4406, 36.8314, 71.8774)
Luminance0.3683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397DB #BFDB97
analogous
#979DDB #B397DB #D597DB
triadic
#B397DB #DBB397 #97DBB3
tetradic
#B397DB #DB979D #BFDB97 #97DBD5
square
#B397DB #DB979D #BFDB97 #97DBD5
split-complementary
#B397DB #DBD597 #9DDB97
monochromatic
#7140B8 #926ACB #B397DB #D4C4EB #EEE8F7

Accessibility & contrast

On white

2.51
#B397DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#B397DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397DB
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397DB#FFFFFF#000000##000000
##B397DB1.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A3DE
Deuteranopia (green-blind)
#8EA3D9
Tritanopia (blue-blind)
#ADA1AF
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b397db;
/* rgb */ color: rgb(179, 151, 219);
/* oklch */ color: oklch(72.6% 0.101 302.9);
Tailwind
colors: {
  custom: {
    50: '#cab5e6',
    500: '#b397db',
    950: '#000000',
  },
}
SCSS
$custom: #b397db;
$custom-light: #cab5e6;
$custom-dark: #000000;
JSON
{
  "hex": "#b397db",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 219
  },
  "hsl": {
    "h": 264.706,
    "s": 48.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.72611,
    "c": 0.10092,
    "h": 302.9
  },
  "luminance": 0.36831
}

Semantic roles & 50–950 ramp

primary
#B397DB
secondary
#E7EEDD
accent
#BC2A80
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B397DB

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

Preview Lab → · Contrast checker → · Palette generator →

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