#B337AB#B337AB

#B337AB is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.1% C 0.205 H 330.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#B337AB
RGBrgb(179, 55, 171)
HSLhsl(304, 53%, 46%)
HSVhsv(304, 69%, 70%)
CMYKcmyk(0%, 69.3%, 4.5%, 29.8%)
CIE-LABlab(45.99, 62.74, -36.40)
CIE-LCHlch(45.99, 72.54, 329.88°)
OKLaboklab(56.12% 0.1783 -0.1002)
OKLCHoklch(56.12% 0.205 330.7)
XYZxyz(27.3072, 15.2584, 40.0271)
Luminance0.1526 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B337AB #37B33F
analogous
#7D37B3 #B337AB #B3376D
triadic
#B337AB #ABB337 #37ABB3
tetradic
#B337AB #B37D37 #37B33F #376DB3
square
#B337AB #B37D37 #37B33F #376DB3
split-complementary
#B337AB #6DB337 #37B37D
monochromatic
#551A52 #84297E #B337AB #CD5BC5 #DB8AD6

Accessibility & contrast

On white

5.18
#B337AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#B337AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B337AB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B337AB#FFFFFF#000000##FFFFFF
##B337AB1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C62AE
Deuteranopia (green-blind)
#5B73A8
Tritanopia (blue-blind)
#BA456D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b337ab;
/* rgb */ color: rgb(179, 55, 171);
/* oklch */ color: oklch(56.1% 0.205 330.7);
Tailwind
colors: {
  custom: {
    50: '#cd79c4',
    500: '#b337ab',
    950: '#000000',
  },
}
SCSS
$custom: #b337ab;
$custom-light: #cd79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b337ab",
  "rgb": {
    "r": 179,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 303.871,
    "s": 52.991,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5612,
    "c": 0.20458,
    "h": 330.7
  },
  "luminance": 0.15256
}

Semantic roles & 50–950 ramp

primary
#B337AB
secondary
#81C585
accent
#DC554B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B337AB

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

Preview Lab → · Contrast checker → · Palette generator →

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