#B337B8#B337B8

#B337B8 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.8% C 0.215 H 326.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#B337B8
RGBrgb(179, 55, 184)
HSLhsl(298, 54%, 47%)
HSVhsv(298, 70%, 72%)
CMYKcmyk(2.7%, 70.1%, 0%, 27.8%)
CIE-LABlab(46.68, 64.90, -42.94)
CIE-LCHlch(46.68, 77.82, 326.51°)
OKLaboklab(56.85% 0.1787 -0.1192)
OKLCHoklch(56.85% 0.215 326.3)
XYZxyz(28.6078, 15.7787, 46.8769)
Luminance0.1578 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B337B8 #3CB837
analogous
#7237B8 #B337B8 #B8377D
triadic
#B337B8 #B8B337 #37B8B3
tetradic
#B337B8 #B87237 #3CB837 #377DB8
square
#B337B8 #B87237 #3CB837 #377DB8
split-complementary
#B337B8 #7DB837 #37B872
monochromatic
#571B5A #852989 #B337B8 #CA5DCF #DA8DDD

Accessibility & contrast

On white

5.05
#B337B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#B337B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B337B8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B337B8#FFFFFF#000000##FFFFFF
##B337B81.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B65BC
Deuteranopia (green-blind)
#5474B5
Tritanopia (blue-blind)
#B84B74
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b337b8;
/* rgb */ color: rgb(179, 55, 184);
/* oklch */ color: oklch(56.8% 0.215 326.3);
Tailwind
colors: {
  custom: {
    50: '#cd79ce',
    500: '#b337b8',
    950: '#000000',
  },
}
SCSS
$custom: #b337b8;
$custom-light: #cd79ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b337b8",
  "rgb": {
    "r": 179,
    "g": 55,
    "b": 184
  },
  "hsl": {
    "h": 297.674,
    "s": 53.975,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56846,
    "c": 0.21479,
    "h": 326.3
  },
  "luminance": 0.15777
}

Semantic roles & 50–950 ramp

primary
#B337B8
secondary
#86C784
accent
#DD4A50
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B337B8

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

Preview Lab → · Contrast checker → · Palette generator →

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