#B397FE#B397FE

#B397FE is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.3% C 0.147 H 295.1°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#B397FE
RGBrgb(179, 151, 254)
HSLhsl(256, 98%, 79%)
HSVhsv(256, 41%, 100%)
CMYKcmyk(29.5%, 40.6%, 0%, 0.4%)
CIE-LABlab(68.66, 31.99, -47.63)
CIE-LCHlch(68.66, 57.38, 303.89°)
OKLaboklab(74.26% 0.0624 -0.1333)
OKLCHoklch(74.26% 0.147 295.1)
XYZxyz(47.5420, 38.8720, 98.7450)
Luminance0.3887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397FE #E2FE97
analogous
#97AFFE #B397FE #E797FE
triadic
#B397FE #FEB397 #97FEB3
tetradic
#B397FE #FE97AF #E2FE97 #97FEE7
square
#B397FE #FE97AF #E2FE97 #97FEE7
split-complementary
#B397FE #FEE797 #AFFE97
monochromatic
#5A1EFD #875AFD #B397FE #DFD4FF #E9E1FF

Accessibility & contrast

On white

2.39
#B397FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#B397FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397FE
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397FE#FFFFFF#000000##000000
##B397FE1.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A8FF
Deuteranopia (green-blind)
#7DA6FB
Tritanopia (blue-blind)
#A3A9BE
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b397fe;
/* rgb */ color: rgb(179, 151, 254);
/* oklch */ color: oklch(74.3% 0.147 295.1);
Tailwind
colors: {
  custom: {
    50: '#ccb6ff',
    500: '#b397fe',
    950: '#000000',
  },
}
SCSS
$custom: #b397fe;
$custom-light: #ccb6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b397fe",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 256.311,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.74255,
    "c": 0.14717,
    "h": 295.1
  },
  "luminance": 0.38873
}

Semantic roles & 50–950 ramp

primary
#B397FE
secondary
#EDF7D4
accent
#E600A7
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086

Preview Lab

Preview with #B397FE

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

Preview Lab → · Contrast checker → · Palette generator →

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