#B397D2#B397D2

#B397D2 is a light, moderate violet. Relative luminance 0.364; OKLCH L 72.2% C 0.089 H 305.9°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#B397D2
RGBrgb(179, 151, 210)
HSLhsl(268, 40%, 71%)
HSVhsv(268, 28%, 82%)
CMYKcmyk(14.8%, 28.1%, 0%, 17.6%)
CIE-LABlab(66.80, 21.77, -26.33)
CIE-LCHlch(66.80, 34.17, 309.58°)
OKLaboklab(72.23% 0.0523 -0.0722)
OKLCHoklch(72.23% 0.089 305.9)
XYZxyz(41.2876, 36.3703, 65.8053)
Luminance0.3637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397D2 #B6D297
analogous
#9798D2 #B397D2 #D097D2
triadic
#B397D2 #D2B397 #97D2B3
tetradic
#B397D2 #D29798 #B6D297 #97D2D0
square
#B397D2 #D29798 #B6D297 #97D2D0
split-complementary
#B397D2 #D2D097 #98D297
monochromatic
#7548A7 #946CC0 #B397D2 #D2C2E4 #EFEAF6

Accessibility & contrast

On white

2.54
#B397D2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#B397D2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397D2
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397D2#FFFFFF#000000##000000
##B397D21.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CA2D4
Deuteranopia (green-blind)
#91A3D0
Tritanopia (blue-blind)
#AF9FAC
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b397d2;
/* rgb */ color: rgb(179, 151, 210);
/* oklch */ color: oklch(72.2% 0.089 305.9);
Tailwind
colors: {
  custom: {
    50: '#cab5e0',
    500: '#b397d2',
    950: '#000000',
  },
}
SCSS
$custom: #b397d2;
$custom-light: #cab5e0;
$custom-dark: #000000;
JSON
{
  "hex": "#b397d2",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 210
  },
  "hsl": {
    "h": 268.475,
    "s": 39.597,
    "l": 70.784
  },
  "oklch": {
    "l": 0.72229,
    "c": 0.08912,
    "h": 305.9
  },
  "luminance": 0.3637
}

Semantic roles & 50–950 ramp

primary
#B397D2
secondary
#E3EADA
accent
#B33376
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131115
muted
#828083

Preview Lab

Preview with #B397D2

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

Preview Lab → · Contrast checker → · Palette generator →

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