#B337B1#B337B1

#B337B1 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.4% C 0.209 H 328.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B337B1
RGBrgb(179, 55, 177)
HSLhsl(301, 53%, 46%)
HSVhsv(301, 69%, 70%)
CMYKcmyk(0%, 69.3%, 1.1%, 29.8%)
CIE-LABlab(46.30, 63.72, -39.44)
CIE-LCHlch(46.30, 74.94, 328.25°)
OKLaboklab(56.45% 0.1786 -0.109)
OKLCHoklch(56.45% 0.209 328.6)
XYZxyz(27.8921, 15.4924, 43.1077)
Luminance0.1549 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B337B1 #37B339
analogous
#7737B3 #B337B1 #B33773
triadic
#B337B1 #B1B337 #37B1B3
tetradic
#B337B1 #B37737 #37B339 #3773B3
square
#B337B1 #B37737 #37B339 #3773B3
split-complementary
#B337B1 #73B337 #37B377
monochromatic
#551A54 #842983 #B337B1 #CD5BCB #DB8ADA

Accessibility & contrast

On white

5.12
#B337B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#B337B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B337B1
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B337B1#FFFFFF#000000##FFFFFF
##B337B11.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2563B4
Deuteranopia (green-blind)
#5873AE
Tritanopia (blue-blind)
#B94870
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b337b1;
/* rgb */ color: rgb(179, 55, 177);
/* oklch */ color: oklch(56.4% 0.209 328.6);
Tailwind
colors: {
  custom: {
    50: '#cd79c9',
    500: '#b337b1',
    950: '#000000',
  },
}
SCSS
$custom: #b337b1;
$custom-light: #cd79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b337b1",
  "rgb": {
    "r": 179,
    "g": 55,
    "b": 177
  },
  "hsl": {
    "h": 300.968,
    "s": 52.991,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56449,
    "c": 0.20924,
    "h": 328.6
  },
  "luminance": 0.1549
}

Semantic roles & 50–950 ramp

primary
#B337B1
secondary
#81C582
accent
#DC4E4B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B337B1

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

Preview Lab → · Contrast checker → · Palette generator →

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