#B337A4#B337A4

#B337A4 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.8% C 0.199 H 333.2°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#B337A4
RGBrgb(179, 55, 164)
HSLhsl(307, 53%, 46%)
HSVhsv(307, 69%, 70%)
CMYKcmyk(0%, 69.3%, 8.4%, 29.8%)
CIE-LABlab(45.63, 61.63, -32.81)
CIE-LCHlch(45.63, 69.82, 331.97°)
OKLaboklab(55.75% 0.1779 -0.0899)
OKLCHoklch(55.75% 0.199 333.2)
XYZxyz(26.6576, 14.9986, 36.6058)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B337A4 #37B346
analogous
#8437B3 #B337A4 #B33766
triadic
#B337A4 #A4B337 #37A4B3
tetradic
#B337A4 #B38437 #37B346 #3766B3
square
#B337A4 #B38437 #37B346 #3766B3
split-complementary
#B337A4 #66B337 #37B384
monochromatic
#551A4E #842979 #B337A4 #CD5BBF #DB8AD1

Accessibility & contrast

On white

5.25
#B337A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#B337A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B337A4
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B337A4#FFFFFF#000000##FFFFFF
##B337A41.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3361A7
Deuteranopia (green-blind)
#5F72A1
Tritanopia (blue-blind)
#BB4269
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b337a4;
/* rgb */ color: rgb(179, 55, 164);
/* oklch */ color: oklch(55.8% 0.199 333.2);
Tailwind
colors: {
  custom: {
    50: '#cd79bf',
    500: '#b337a4',
    950: '#000000',
  },
}
SCSS
$custom: #b337a4;
$custom-light: #cd79bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b337a4",
  "rgb": {
    "r": 179,
    "g": 55,
    "b": 164
  },
  "hsl": {
    "h": 307.258,
    "s": 52.991,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5575,
    "c": 0.19927,
    "h": 333.2
  },
  "luminance": 0.14996
}

Semantic roles & 50–950 ramp

primary
#B337A4
secondary
#81C589
accent
#DC5D4B
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B337A4

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

Preview Lab → · Contrast checker → · Palette generator →

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