#B337A2#B337A2

#B337A2 is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.6% C 0.198 H 333.9°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B337A2
RGBrgb(179, 55, 162)
HSLhsl(308, 53%, 46%)
HSVhsv(308, 69%, 70%)
CMYKcmyk(0%, 69.3%, 9.5%, 29.8%)
CIE-LABlab(45.53, 61.32, -31.77)
CIE-LCHlch(45.53, 69.06, 332.61°)
OKLaboklab(55.65% 0.1777 -0.0869)
OKLCHoklch(55.65% 0.198 333.9)
XYZxyz(26.4784, 14.9269, 35.6620)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B337A2 #37B348
analogous
#8637B3 #B337A2 #B33764
triadic
#B337A2 #A2B337 #37A2B3
tetradic
#B337A2 #B38637 #37B348 #3764B3
square
#B337A2 #B38637 #37B348 #3764B3
split-complementary
#B337A2 #64B337 #37B386
monochromatic
#551A4D #842978 #B337A2 #CD5BBD #DB8AD0

Accessibility & contrast

On white

5.27
#B337A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B337A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B337A2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B337A2#FFFFFF#000000##FFFFFF
##B337A21.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3460A5
Deuteranopia (green-blind)
#60729F
Tritanopia (blue-blind)
#BB4168
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b337a2;
/* rgb */ color: rgb(179, 55, 162);
/* oklch */ color: oklch(55.6% 0.198 333.9);
Tailwind
colors: {
  custom: {
    50: '#cd78be',
    500: '#b337a2',
    950: '#000000',
  },
}
SCSS
$custom: #b337a2;
$custom-light: #cd78be;
$custom-dark: #000000;
JSON
{
  "hex": "#b337a2",
  "rgb": {
    "r": 179,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 308.226,
    "s": 52.991,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55647,
    "c": 0.19778,
    "h": 333.9
  },
  "luminance": 0.14925
}

Semantic roles & 50–950 ramp

primary
#B337A2
secondary
#81C58A
accent
#DC5F4B
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B337A2

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

Preview Lab → · Contrast checker → · Palette generator →

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