#B397EE#B397EE

#B397EE is a light, vivid violet. Relative luminance 0.379; OKLCH L 73.5% C 0.126 H 298.0°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#B397EE
RGBrgb(179, 151, 238)
HSLhsl(259, 72%, 76%)
HSVhsv(259, 37%, 93%)
CMYKcmyk(24.8%, 36.6%, 0%, 6.7%)
CIE-LABlab(67.94, 28.14, -40.02)
CIE-LCHlch(67.94, 48.92, 305.12°)
OKLaboklab(73.47% 0.0593 -0.1113)
OKLCHoklch(73.47% 0.126 298)
XYZxyz(45.0861, 37.8896, 85.8105)
Luminance0.3789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397EE #D2EE97
analogous
#97A7EE #B397EE #DF97EE
triadic
#B397EE #EEB397 #97EEB3
tetradic
#B397EE #EE97A7 #D2EE97 #97EEDF
square
#B397EE #EE97A7 #D2EE97 #97EEDF
split-complementary
#B397EE #EEDF97 #A7EE97
monochromatic
#662EDD #8D62E5 #B397EE #D9CCF7 #ECE5FB

Accessibility & contrast

On white

2.45
#B397EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#B397EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397EE
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397EE#FFFFFF#000000##000000
##B397EE1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A6F1
Deuteranopia (green-blind)
#86A5EC
Tritanopia (blue-blind)
#A8A6B7
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b397ee;
/* rgb */ color: rgb(179, 151, 238);
/* oklch */ color: oklch(73.5% 0.126 298.0);
Tailwind
colors: {
  custom: {
    50: '#cbb6f4',
    500: '#b397ee',
    950: '#000000',
  },
}
SCSS
$custom: #b397ee;
$custom-light: #cbb6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b397ee",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 238
  },
  "hsl": {
    "h": 259.31,
    "s": 71.901,
    "l": 76.275
  },
  "oklch": {
    "l": 0.73473,
    "c": 0.12606,
    "h": 298
  },
  "luminance": 0.3789
}

Semantic roles & 50–950 ramp

primary
#B397EE
secondary
#EAF2D9
accent
#D41295
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #B397EE

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

Preview Lab → · Contrast checker → · Palette generator →

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