#B397EB#B397EB

#B397EB is a light, vivid violet. Relative luminance 0.377; OKLCH L 73.3% C 0.122 H 298.7°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#B397EB
RGBrgb(179, 151, 235)
HSLhsl(260, 68%, 76%)
HSVhsv(260, 36%, 92%)
CMYKcmyk(23.8%, 35.7%, 0%, 7.8%)
CIE-LABlab(67.81, 27.43, -38.57)
CIE-LCHlch(67.81, 47.33, 305.42°)
OKLaboklab(73.33% 0.0586 -0.1071)
OKLCHoklch(73.33% 0.122 298.7)
XYZxyz(44.6490, 37.7148, 83.5086)
Luminance0.3771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397EB #CFEB97
analogous
#97A5EB #B397EB #DD97EB
triadic
#B397EB #EBB397 #97EBB3
tetradic
#B397EB #EB97A5 #CFEB97 #97EBDD
square
#B397EB #EB97A5 #CFEB97 #97EBDD
split-complementary
#B397EB #EBDD97 #A5EB97
monochromatic
#6830D7 #8D64E1 #B397EB #D9CAF5 #ECE5FA

Accessibility & contrast

On white

2.46
#B397EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#B397EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397EB
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397EB#FFFFFF#000000##000000
##B397EB1.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A5EE
Deuteranopia (green-blind)
#87A5E9
Tritanopia (blue-blind)
#A8A5B6
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b397eb;
/* rgb */ color: rgb(179, 151, 235);
/* oklch */ color: oklch(73.3% 0.122 298.7);
Tailwind
colors: {
  custom: {
    50: '#cbb5f1',
    500: '#b397eb',
    950: '#000000',
  },
}
SCSS
$custom: #b397eb;
$custom-light: #cbb5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b397eb",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 260,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.73332,
    "c": 0.12209,
    "h": 298.7
  },
  "luminance": 0.37715
}

Semantic roles & 50–950 ramp

primary
#B397EB
secondary
#EAF2D9
accent
#D01692
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #B397EB

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

Preview Lab → · Contrast checker → · Palette generator →

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