#B397F2#B397F2

#B397F2 is a light, vivid violet. Relative luminance 0.381; OKLCH L 73.7% C 0.131 H 297.2°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#B397F2
RGBrgb(179, 151, 242)
HSLhsl(258, 78%, 77%)
HSVhsv(258, 38%, 95%)
CMYKcmyk(26%, 37.6%, 0%, 5.1%)
CIE-LABlab(68.11, 29.09, -41.93)
CIE-LCHlch(68.11, 51.03, 304.75°)
OKLaboklab(73.66% 0.0601 -0.1168)
OKLCHoklch(73.66% 0.131 297.2)
XYZxyz(45.6803, 38.1273, 88.9399)
Luminance0.3813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397F2 #D6F297
analogous
#97A8F2 #B397F2 #E197F2
triadic
#B397F2 #F2B397 #97F2B3
tetradic
#B397F2 #F297A8 #D6F297 #97F2E1
square
#B397F2 #F297A8 #D6F297 #97F2E1
split-complementary
#B397F2 #F2E197 #A8F297
monochromatic
#632AE4 #8B61EB #B397F2 #DBCDF9 #EBE4FC

Accessibility & contrast

On white

2.43
#B397F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.63
#B397F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397F2
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397F2#FFFFFF#000000##000000
##B397F21.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA6F6
Deuteranopia (green-blind)
#84A5F0
Tritanopia (blue-blind)
#A6A6B9
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b397f2;
/* rgb */ color: rgb(179, 151, 242);
/* oklch */ color: oklch(73.7% 0.131 297.2);
Tailwind
colors: {
  custom: {
    50: '#cbb6f6',
    500: '#b397f2',
    950: '#000000',
  },
}
SCSS
$custom: #b397f2;
$custom-light: #cbb6f6;
$custom-dark: #000000;
JSON
{
  "hex": "#b397f2",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 258.462,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.73664,
    "c": 0.13136,
    "h": 297.2
  },
  "luminance": 0.38128
}

Semantic roles & 50–950 ramp

primary
#B397F2
secondary
#EBF3D8
accent
#DA0B9A
background
#FCFBFF
surface
#F9F6FE
border
#D2D0D6
text
#131117
muted
#828085

Preview Lab

Preview with #B397F2

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

Preview Lab → · Contrast checker → · Palette generator →

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