#B397FB#B397FB

#B397FB is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.1% C 0.143 H 295.6°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#B397FB
RGBrgb(179, 151, 251)
HSLhsl(257, 93%, 79%)
HSVhsv(257, 40%, 98%)
CMYKcmyk(28.7%, 39.8%, 0%, 1.6%)
CIE-LABlab(68.52, 31.26, -46.21)
CIE-LCHlch(68.52, 55.79, 304.08°)
OKLaboklab(74.11% 0.0619 -0.1292)
OKLCHoklch(74.11% 0.143 295.6)
XYZxyz(47.0654, 38.6814, 96.2347)
Luminance0.3868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397FB #DFFB97
analogous
#97ADFB #B397FB #E597FB
triadic
#B397FB #FBB397 #97FBB3
tetradic
#B397FB #FB97AD #DFFB97 #97FBE5
square
#B397FB #FB97AD #DFFB97 #97FBE5
split-complementary
#B397FB #FBE597 #ADFB97
monochromatic
#5D21F6 #885CF9 #B397FB #DED2FD #E9E2FE

Accessibility & contrast

On white

2.40
#B397FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.74
#B397FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397FB
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397FB#FFFFFF#000000##000000
##B397FB1.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA8FF
Deuteranopia (green-blind)
#7FA6F8
Tritanopia (blue-blind)
#A4A9BD
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b397fb;
/* rgb */ color: rgb(179, 151, 251);
/* oklch */ color: oklch(74.1% 0.143 295.6);
Tailwind
colors: {
  custom: {
    50: '#ccb6fd',
    500: '#b397fb',
    950: '#000000',
  },
}
SCSS
$custom: #b397fb;
$custom-light: #ccb6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#b397fb",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 256.8,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.74105,
    "c": 0.14323,
    "h": 295.6
  },
  "luminance": 0.38682
}

Semantic roles & 50–950 ramp

primary
#B397FB
secondary
#EDF6D5
accent
#E600A5
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B397FB

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

Preview Lab → · Contrast checker → · Palette generator →

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