#B397FA#B397FA

#B397FA is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.1% C 0.142 H 295.8°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#B397FA
RGBrgb(179, 151, 250)
HSLhsl(257, 91%, 79%)
HSVhsv(257, 40%, 98%)
CMYKcmyk(28.4%, 39.6%, 0%, 2%)
CIE-LABlab(68.47, 31.02, -45.74)
CIE-LCHlch(68.47, 55.26, 304.14°)
OKLaboklab(74.06% 0.0617 -0.1278)
OKLCHoklch(74.06% 0.142 295.8)
XYZxyz(46.9082, 38.6185, 95.4067)
Luminance0.3862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397FA #DEFA97
analogous
#97ACFA #B397FA #E597FA
triadic
#B397FA #FAB397 #97FAB3
tetradic
#B397FA #FA97AC #DEFA97 #97FAE5
square
#B397FA #FA97AC #DEFA97 #97FAE5
split-complementary
#B397FA #FAE597 #ACFA97
monochromatic
#5E22F4 #885DF7 #B397FA #DED1FD #EAE2FE

Accessibility & contrast

On white

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

On black

8.72
#B397FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397FA
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397FA#FFFFFF#000000##000000
##B397FA1.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA8FE
Deuteranopia (green-blind)
#7FA6F7
Tritanopia (blue-blind)
#A4A8BD
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b397fa;
/* rgb */ color: rgb(179, 151, 250);
/* oklch */ color: oklch(74.1% 0.142 295.8);
Tailwind
colors: {
  custom: {
    50: '#ccb6fc',
    500: '#b397fa',
    950: '#000000',
  },
}
SCSS
$custom: #b397fa;
$custom-light: #ccb6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b397fa",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 256.97,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.74055,
    "c": 0.14191,
    "h": 295.8
  },
  "luminance": 0.38619
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B397FA

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

Preview Lab → · Contrast checker → · Palette generator →

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