#B397DC#B397DC

#B397DC is a light, moderate violet. Relative luminance 0.369; OKLCH L 72.7% C 0.102 H 302.6°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#B397DC
RGBrgb(179, 151, 220)
HSLhsl(264, 50%, 73%)
HSVhsv(264, 31%, 86%)
CMYKcmyk(18.6%, 31.4%, 0%, 13.7%)
CIE-LABlab(67.19, 23.98, -31.27)
CIE-LCHlch(67.19, 39.41, 307.49°)
OKLaboklab(72.66% 0.055 -0.0862)
OKLCHoklch(72.66% 0.102 302.6)
XYZxyz(42.5726, 36.8842, 72.5728)
Luminance0.3688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397DC #C0DC97
analogous
#979DDC #B397DC #D597DC
triadic
#B397DC #DCB397 #97DCB3
tetradic
#B397DC #DC979D #C0DC97 #97DCD5
square
#B397DC #DC979D #C0DC97 #97DCD5
split-complementary
#B397DC #DCD597 #9DDC97
monochromatic
#713FBA #9269CD #B397DC #D4C5EB #EEE8F7

Accessibility & contrast

On white

2.51
#B397DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#B397DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397DC
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397DC#FFFFFF#000000##000000
##B397DC1.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A3DF
Deuteranopia (green-blind)
#8EA3DA
Tritanopia (blue-blind)
#ACA1B0
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b397dc;
/* rgb */ color: rgb(179, 151, 220);
/* oklch */ color: oklch(72.7% 0.102 302.6);
Tailwind
colors: {
  custom: {
    50: '#cab5e7',
    500: '#b397dc',
    950: '#000000',
  },
}
SCSS
$custom: #b397dc;
$custom-light: #cab5e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b397dc",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 264.348,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.72655,
    "c": 0.10224,
    "h": 302.6
  },
  "luminance": 0.36884
}

Semantic roles & 50–950 ramp

primary
#B397DC
secondary
#E7EEDD
accent
#BD2981
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B397DC

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

Preview Lab → · Contrast checker → · Palette generator →

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