#B397DF#B397DF

#B397DF is a light, moderate violet. Relative luminance 0.370; OKLCH L 72.8% C 0.106 H 301.7°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#B397DF
RGBrgb(179, 151, 223)
HSLhsl(263, 53%, 73%)
HSVhsv(263, 32%, 87%)
CMYKcmyk(19.7%, 32.3%, 0%, 12.5%)
CIE-LABlab(67.31, 24.66, -32.74)
CIE-LCHlch(67.31, 40.99, 306.99°)
OKLaboklab(72.79% 0.0558 -0.0904)
OKLCHoklch(72.79% 0.106 301.7)
XYZxyz(42.9735, 37.0446, 74.6841)
Luminance0.3705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397DF #C3DF97
analogous
#979FDF #B397DF #D797DF
triadic
#B397DF #DFB397 #97DFB3
tetradic
#B397DF #DF979F #C3DF97 #97DFD7
square
#B397DF #DF979F #C3DF97 #97DFD7
split-complementary
#B397DF #DFD797 #9FDF97
monochromatic
#6F3BC0 #9168D1 #B397DF #D5C6ED #EEE8F8

Accessibility & contrast

On white

2.50
#B397DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.41
#B397DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397DF
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397DF#FFFFFF#000000##000000
##B397DF1.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A3E2
Deuteranopia (green-blind)
#8CA4DD
Tritanopia (blue-blind)
#ACA2B1
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b397df;
/* rgb */ color: rgb(179, 151, 223);
/* oklch */ color: oklch(72.8% 0.106 301.7);
Tailwind
colors: {
  custom: {
    50: '#cab5e9',
    500: '#b397df',
    950: '#000000',
  },
}
SCSS
$custom: #b397df;
$custom-light: #cab5e9;
$custom-dark: #000000;
JSON
{
  "hex": "#b397df",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 223
  },
  "hsl": {
    "h": 263.333,
    "s": 52.941,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72786,
    "c": 0.10621,
    "h": 301.7
  },
  "luminance": 0.37045
}

Semantic roles & 50–950 ramp

primary
#B397DF
secondary
#E8EFDC
accent
#C02584
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B397DF

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

Preview Lab → · Contrast checker → · Palette generator →

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