#B334A2#B334A2

#B334A2 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.4% C 0.201 H 333.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#B334A2
RGBrgb(179, 52, 162)
HSLhsl(308, 55%, 45%)
HSVhsv(308, 71%, 70%)
CMYKcmyk(0%, 70.9%, 9.5%, 29.8%)
CIE-LABlab(45.15, 62.40, -32.37)
CIE-LCHlch(45.15, 70.30, 332.58°)
OKLaboklab(55.37% 0.1808 -0.0886)
OKLCHoklch(55.37% 0.201 333.9)
XYZxyz(26.3402, 14.6505, 35.6160)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334A2 #34B345
analogous
#8434B3 #B334A2 #B33463
triadic
#B334A2 #A2B334 #34A2B3
tetradic
#B334A2 #B38434 #34B345 #3463B3
square
#B334A2 #B38434 #34B345 #3463B3
split-complementary
#B334A2 #63B334 #34B384
monochromatic
#54184C #842677 #B334A2 #CE56BE #DC86D0

Accessibility & contrast

On white

5.34
#B334A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B334A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334A2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334A2#FFFFFF#000000##FFFFFF
##B334A21.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315FA5
Deuteranopia (green-blind)
#5E719F
Tritanopia (blue-blind)
#BB3F67
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b334a2;
/* rgb */ color: rgb(179, 52, 162);
/* oklch */ color: oklch(55.4% 0.201 333.9);
Tailwind
colors: {
  custom: {
    50: '#cd77be',
    500: '#b334a2',
    950: '#000000',
  },
}
SCSS
$custom: #b334a2;
$custom-light: #cd77be;
$custom-dark: #000000;
JSON
{
  "hex": "#b334a2",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 308.031,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.5537,
    "c": 0.20138,
    "h": 333.9
  },
  "luminance": 0.14648
}

Semantic roles & 50–950 ramp

primary
#B334A2
secondary
#7DC587
accent
#DE5D49
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B334A2

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

Preview Lab → · Contrast checker → · Palette generator →

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