#B397EF#B397EF

#B397EF is a light, vivid violet. Relative luminance 0.379; OKLCH L 73.5% C 0.127 H 297.8°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#B397EF
RGBrgb(179, 151, 239)
HSLhsl(259, 73%, 76%)
HSVhsv(259, 37%, 94%)
CMYKcmyk(25.1%, 36.8%, 0%, 6.3%)
CIE-LABlab(67.98, 28.38, -40.50)
CIE-LCHlch(67.98, 49.45, 305.02°)
OKLaboklab(73.52% 0.0595 -0.1126)
OKLCHoklch(73.52% 0.127 297.8)
XYZxyz(45.2334, 37.9486, 86.5864)
Luminance0.3795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397EF #D3EF97
analogous
#97A7EF #B397EF #DF97EF
triadic
#B397EF #EFB397 #97EFB3
tetradic
#B397EF #EF97A7 #D3EF97 #97EFDF
square
#B397EF #EF97A7 #D3EF97 #97EFDF
split-complementary
#B397EF #EFDF97 #A7EF97
monochromatic
#652DDF #8C62E7 #B397EF #DACCF7 #ECE4FB

Accessibility & contrast

On white

2.44
#B397EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.59
#B397EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397EF
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397EF#FFFFFF#000000##000000
##B397EF1.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A6F2
Deuteranopia (green-blind)
#85A5ED
Tritanopia (blue-blind)
#A7A6B8
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b397ef;
/* rgb */ color: rgb(179, 151, 239);
/* oklch */ color: oklch(73.5% 0.127 297.8);
Tailwind
colors: {
  custom: {
    50: '#cbb6f4',
    500: '#b397ef',
    950: '#000000',
  },
}
SCSS
$custom: #b397ef;
$custom-light: #cbb6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b397ef",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 259.091,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.7352,
    "c": 0.12739,
    "h": 297.8
  },
  "luminance": 0.37949
}

Semantic roles & 50–950 ramp

primary
#B397EF
secondary
#EAF3D8
accent
#D51097
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #B397EF

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

Preview Lab → · Contrast checker → · Palette generator →

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