#B397EC#B397EC

#B397EC is a light, vivid violet. Relative luminance 0.378; OKLCH L 73.4% C 0.123 H 298.5°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#B397EC
RGBrgb(179, 151, 236)
HSLhsl(260, 69%, 76%)
HSVhsv(260, 36%, 93%)
CMYKcmyk(24.2%, 36%, 0%, 7.5%)
CIE-LABlab(67.85, 27.67, -39.05)
CIE-LCHlch(67.85, 47.86, 305.32°)
OKLaboklab(73.38% 0.0588 -0.1085)
OKLCHoklch(73.38% 0.123 298.5)
XYZxyz(44.7939, 37.7728, 84.2716)
Luminance0.3777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397EC #D0EC97
analogous
#97A5EC #B397EC #DE97EC
triadic
#B397EC #ECB397 #97ECB3
tetradic
#B397EC #EC97A5 #D0EC97 #97ECDE
square
#B397EC #EC97A5 #D0EC97 #97ECDE
split-complementary
#B397EC #ECDE97 #A5EC97
monochromatic
#6730D9 #8D63E3 #B397EC #D9CBF5 #ECE5FA

Accessibility & contrast

On white

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

On black

8.55
#B397EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397EC
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397EC#FFFFFF#000000##000000
##B397EC1.002.458.558.55
#FFFFFF2.451.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A5EF
Deuteranopia (green-blind)
#87A5EA
Tritanopia (blue-blind)
#A8A5B7
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b397ec;
/* rgb */ color: rgb(179, 151, 236);
/* oklch */ color: oklch(73.4% 0.123 298.5);
Tailwind
colors: {
  custom: {
    50: '#cbb5f2',
    500: '#b397ec',
    950: '#000000',
  },
}
SCSS
$custom: #b397ec;
$custom-light: #cbb5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b397ec",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 259.765,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.73379,
    "c": 0.12342,
    "h": 298.5
  },
  "luminance": 0.37773
}

Semantic roles & 50–950 ramp

primary
#B397EC
secondary
#EAF2D9
accent
#D11493
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #B397EC

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

Preview Lab → · Contrast checker → · Palette generator →

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