#B397F5#B397F5

#B397F5 is a light, vivid violet. Relative luminance 0.383; OKLCH L 73.8% C 0.135 H 296.7°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#B397F5
RGBrgb(179, 151, 245)
HSLhsl(258, 82%, 78%)
HSVhsv(258, 38%, 96%)
CMYKcmyk(26.9%, 38.4%, 0%, 3.9%)
CIE-LABlab(68.25, 29.81, -43.36)
CIE-LCHlch(68.25, 52.62, 304.50°)
OKLaboklab(73.81% 0.0607 -0.1209)
OKLCHoklch(73.81% 0.135 296.7)
XYZxyz(46.1345, 38.3090, 91.3323)
Luminance0.3831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397F5 #D9F597
analogous
#97AAF5 #B397F5 #E297F5
triadic
#B397F5 #F5B397 #97F5B3
tetradic
#B397F5 #F597AA #D9F597 #97F5E2
square
#B397F5 #F597AA #D9F597 #97F5E2
split-complementary
#B397F5 #F5E297 #AAF597
monochromatic
#6127EA #8A5FF0 #B397F5 #DCCFFA #EBE3FC

Accessibility & contrast

On white

2.42
#B397F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.66
#B397F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397F5
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397F5#FFFFFF#000000##000000
##B397F51.002.428.668.66
#FFFFFF2.421.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA7F9
Deuteranopia (green-blind)
#82A5F3
Tritanopia (blue-blind)
#A6A7BA
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b397f5;
/* rgb */ color: rgb(179, 151, 245);
/* oklch */ color: oklch(73.8% 0.135 296.7);
Tailwind
colors: {
  custom: {
    50: '#cbb6f9',
    500: '#b397f5',
    950: '#000000',
  },
}
SCSS
$custom: #b397f5;
$custom-light: #cbb6f9;
$custom-dark: #000000;
JSON
{
  "hex": "#b397f5",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 245
  },
  "hsl": {
    "h": 257.872,
    "s": 82.456,
    "l": 77.647
  },
  "oklch": {
    "l": 0.73809,
    "c": 0.13533,
    "h": 296.7
  },
  "luminance": 0.38309
}

Semantic roles & 50–950 ramp

primary
#B397F5
secondary
#EBF4D7
accent
#DF079E
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #B397F5

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

Preview Lab → · Contrast checker → · Palette generator →

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