#B397F9#B397F9

#B397F9 is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.0% C 0.141 H 295.9°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#B397F9
RGBrgb(179, 151, 249)
HSLhsl(257, 89%, 78%)
HSVhsv(257, 39%, 98%)
CMYKcmyk(28.1%, 39.4%, 0%, 2.4%)
CIE-LABlab(68.43, 30.78, -45.26)
CIE-LCHlch(68.43, 54.74, 304.21°)
OKLaboklab(74.01% 0.0615 -0.1264)
OKLCHoklch(74.01% 0.141 295.9)
XYZxyz(46.7518, 38.5559, 94.5831)
Luminance0.3856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397F9 #DDF997
analogous
#97ACF9 #B397F9 #E497F9
triadic
#B397F9 #F9B397 #97F9B3
tetradic
#B397F9 #F997AC #DDF997 #97F9E4
square
#B397F9 #F997AC #DDF997 #97F9E4
split-complementary
#B397F9 #F9E497 #ACF997
monochromatic
#5E23F2 #895DF6 #B397F9 #DDD1FC #EAE2FD

Accessibility & contrast

On white

2.41
#B397F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#B397F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397F9
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397F9#FFFFFF#000000##000000
##B397F91.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA7FD
Deuteranopia (green-blind)
#80A6F6
Tritanopia (blue-blind)
#A4A8BC
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b397f9;
/* rgb */ color: rgb(179, 151, 249);
/* oklch */ color: oklch(74.0% 0.141 295.9);
Tailwind
colors: {
  custom: {
    50: '#ccb6fb',
    500: '#b397f9',
    950: '#000000',
  },
}
SCSS
$custom: #b397f9;
$custom-light: #ccb6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b397f9",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 249
  },
  "hsl": {
    "h": 257.143,
    "s": 89.091,
    "l": 78.431
  },
  "oklch": {
    "l": 0.74005,
    "c": 0.1406,
    "h": 295.9
  },
  "luminance": 0.38556
}

Semantic roles & 50–950 ramp

primary
#B397F9
secondary
#ECF5D6
accent
#E600A4
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #B397F9

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

Preview Lab → · Contrast checker → · Palette generator →

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