#B397E2#B397E2

#B397E2 is a light, moderate violet. Relative luminance 0.372; OKLCH L 72.9% C 0.110 H 300.9°. Best body text is #000000 at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#B397E2
RGBrgb(179, 151, 226)
HSLhsl(262, 56%, 74%)
HSVhsv(262, 33%, 89%)
CMYKcmyk(20.8%, 33.2%, 0%, 11.4%)
CIE-LABlab(67.43, 25.35, -34.21)
CIE-LCHlch(67.43, 42.57, 306.54°)
OKLaboklab(72.92% 0.0565 -0.0946)
OKLCHoklch(72.92% 0.11 300.9)
XYZxyz(43.3815, 37.2078, 76.8331)
Luminance0.3721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397E2 #C6E297
analogous
#97A1E2 #B397E2 #D997E2
triadic
#B397E2 #E2B397 #97E2B3
tetradic
#B397E2 #E297A1 #C6E297 #97E2D9
square
#B397E2 #E297A1 #C6E297 #97E2D9
split-complementary
#B397E2 #E2D997 #A1E297
monochromatic
#6D38C7 #9067D5 #B397E2 #D6C7EF #EEE7F8

Accessibility & contrast

On white

2.49
#B397E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.44
#B397E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397E2
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397E2#FFFFFF#000000##000000
##B397E21.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#86A4E5
Deuteranopia (green-blind)
#8BA4E0
Tritanopia (blue-blind)
#ABA3B2
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b397e2;
/* rgb */ color: rgb(179, 151, 226);
/* oklch */ color: oklch(72.9% 0.110 300.9);
Tailwind
colors: {
  custom: {
    50: '#cbb5eb',
    500: '#b397e2',
    950: '#000000',
  },
}
SCSS
$custom: #b397e2;
$custom-light: #cbb5eb;
$custom-dark: #000000;
JSON
{
  "hex": "#b397e2",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 226
  },
  "hsl": {
    "h": 262.4,
    "s": 56.391,
    "l": 73.922
  },
  "oklch": {
    "l": 0.7292,
    "c": 0.11017,
    "h": 300.9
  },
  "luminance": 0.37208
}

Semantic roles & 50–950 ramp

primary
#B397E2
secondary
#E8F0DB
accent
#C42287
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B397E2

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

Preview Lab → · Contrast checker → · Palette generator →

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