#B334A5#B334A5

#B334A5 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.5% C 0.204 H 332.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#B334A5
RGBrgb(179, 52, 165)
HSLhsl(307, 55%, 45%)
HSVhsv(307, 71%, 70%)
CMYKcmyk(0%, 70.9%, 7.8%, 29.8%)
CIE-LABlab(45.30, 62.86, -33.92)
CIE-LCHlch(45.30, 71.43, 331.65°)
OKLaboklab(55.53% 0.1811 -0.0931)
OKLCHoklch(55.53% 0.204 332.8)
XYZxyz(26.6100, 14.7585, 37.0372)
Luminance0.1476 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334A5 #34B342
analogous
#8134B3 #B334A5 #B33466
triadic
#B334A5 #A5B334 #34A5B3
tetradic
#B334A5 #B38134 #34B342 #3466B3
square
#B334A5 #B38134 #34B342 #3466B3
split-complementary
#B334A5 #66B334 #34B381
monochromatic
#54184E #842679 #B334A5 #CE56C1 #DC86D2

Accessibility & contrast

On white

5.31
#B334A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B334A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334A5
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334A5#FFFFFF#000000##FFFFFF
##B334A51.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E60A8
Deuteranopia (green-blind)
#5D72A2
Tritanopia (blue-blind)
#BB4169
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b334a5;
/* rgb */ color: rgb(179, 52, 165);
/* oklch */ color: oklch(55.5% 0.204 332.8);
Tailwind
colors: {
  custom: {
    50: '#cd77c0',
    500: '#b334a5',
    950: '#000000',
  },
}
SCSS
$custom: #b334a5;
$custom-light: #cd77c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b334a5",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 306.614,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55527,
    "c": 0.20358,
    "h": 332.8
  },
  "luminance": 0.14756
}

Semantic roles & 50–950 ramp

primary
#B334A5
secondary
#7DC585
accent
#DE5A49
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B334A5

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

Preview Lab → · Contrast checker → · Palette generator →

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