#B397FD#B397FD

#B397FD is a light, vivid violet. Relative luminance 0.388; OKLCH L 74.2% C 0.146 H 295.3°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#B397FD
RGBrgb(179, 151, 253)
HSLhsl(256, 96%, 79%)
HSVhsv(256, 40%, 99%)
CMYKcmyk(29.2%, 40.3%, 0%, 0.8%)
CIE-LABlab(68.61, 31.75, -47.16)
CIE-LCHlch(68.61, 56.85, 303.95°)
OKLaboklab(74.21% 0.0622 -0.1319)
OKLCHoklch(74.21% 0.146 295.3)
XYZxyz(47.3823, 38.8081, 97.9038)
Luminance0.3881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397FD #E1FD97
analogous
#97AEFD #B397FD #E697FD
triadic
#B397FD #FDB397 #97FDB3
tetradic
#B397FD #FD97AE #E1FD97 #97FDE6
square
#B397FD #FD97AE #E1FD97 #97FDE6
split-complementary
#B397FD #FDE697 #AEFD97
monochromatic
#5B1FFB #875BFC #B397FD #DFD3FE #E9E1FE

Accessibility & contrast

On white

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

On black

8.76
#B397FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397FD
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397FD#FFFFFF#000000##000000
##B397FD1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA8FF
Deuteranopia (green-blind)
#7EA6FA
Tritanopia (blue-blind)
#A3A9BE
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b397fd;
/* rgb */ color: rgb(179, 151, 253);
/* oklch */ color: oklch(74.2% 0.146 295.3);
Tailwind
colors: {
  custom: {
    50: '#ccb6fe',
    500: '#b397fd',
    950: '#000000',
  },
}
SCSS
$custom: #b397fd;
$custom-light: #ccb6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#b397fd",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 256.471,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.74205,
    "c": 0.14586,
    "h": 295.3
  },
  "luminance": 0.38809
}

Semantic roles & 50–950 ramp

primary
#B397FD
secondary
#EDF7D4
accent
#E600A6
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086

Preview Lab

Preview with #B397FD

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

Preview Lab → · Contrast checker → · Palette generator →

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