#B397EA#B397EA

#B397EA is a light, vivid violet. Relative luminance 0.377; OKLCH L 73.3% C 0.121 H 298.9°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#B397EA
RGBrgb(179, 151, 234)
HSLhsl(260, 66%, 75%)
HSVhsv(260, 35%, 92%)
CMYKcmyk(23.5%, 35.5%, 0%, 8.2%)
CIE-LABlab(67.77, 27.20, -38.09)
CIE-LCHlch(67.77, 46.80, 305.53°)
OKLaboklab(73.29% 0.0584 -0.1057)
OKLCHoklch(73.29% 0.121 298.9)
XYZxyz(44.5050, 37.6572, 82.7498)
Luminance0.3766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397EA #CEEA97
analogous
#97A4EA #B397EA #DC97EA
triadic
#B397EA #EAB397 #97EAB3
tetradic
#B397EA #EA97A4 #CEEA97 #97EADC
square
#B397EA #EA97A4 #CEEA97 #97EADC
split-complementary
#B397EA #EADC97 #A4EA97
monochromatic
#6931D5 #8E64E0 #B397EA #D8CAF4 #ECE6FA

Accessibility & contrast

On white

2.46
#B397EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#B397EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397EA
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397EA#FFFFFF#000000##000000
##B397EA1.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A5ED
Deuteranopia (green-blind)
#88A4E8
Tritanopia (blue-blind)
#A9A5B6
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b397ea;
/* rgb */ color: rgb(179, 151, 234);
/* oklch */ color: oklch(73.3% 0.121 298.9);
Tailwind
colors: {
  custom: {
    50: '#cbb5f1',
    500: '#b397ea',
    950: '#000000',
  },
}
SCSS
$custom: #b397ea;
$custom-light: #cbb5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b397ea",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 260.241,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.73285,
    "c": 0.12077,
    "h": 298.9
  },
  "luminance": 0.37657
}

Semantic roles & 50–950 ramp

primary
#B397EA
secondary
#E9F1DA
accent
#CE1791
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B397EA

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

Preview Lab → · Contrast checker → · Palette generator →

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