#B334AB#B334AB

#B334AB is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.8% C 0.208 H 330.7°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#B334AB
RGBrgb(179, 52, 171)
HSLhsl(304, 55%, 45%)
HSVhsv(304, 71%, 70%)
CMYKcmyk(0%, 70.9%, 4.5%, 29.8%)
CIE-LABlab(45.61, 63.81, -36.99)
CIE-LCHlch(45.61, 73.76, 329.90°)
OKLaboklab(55.85% 0.1814 -0.1019)
OKLCHoklch(55.85% 0.208 330.7)
XYZxyz(27.1690, 14.9821, 39.9811)
Luminance0.1498 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334AB #34B33C
analogous
#7C34B3 #B334AB #B3346B
triadic
#B334AB #ABB334 #34ABB3
tetradic
#B334AB #B37C34 #34B33C #346BB3
square
#B334AB #B37C34 #34B33C #346BB3
split-complementary
#B334AB #6BB334 #34B37C
monochromatic
#541850 #84267E #B334AB #CE56C6 #DC86D6

Accessibility & contrast

On white

5.26
#B334AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#B334AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334AB
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334AB#FFFFFF#000000##FFFFFF
##B334AB1.005.264.005.26
#FFFFFF5.261.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AE
Deuteranopia (green-blind)
#5A72A8
Tritanopia (blue-blind)
#BA436C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b334ab;
/* rgb */ color: rgb(179, 52, 171);
/* oklch */ color: oklch(55.8% 0.208 330.7);
Tailwind
colors: {
  custom: {
    50: '#cd77c4',
    500: '#b334ab',
    950: '#000000',
  },
}
SCSS
$custom: #b334ab;
$custom-light: #cd77c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b334ab",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 303.78,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55849,
    "c": 0.20808,
    "h": 330.7
  },
  "luminance": 0.1498
}

Semantic roles & 50–950 ramp

primary
#B334AB
secondary
#7DC582
accent
#DE5349
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B334AB

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

Preview Lab → · Contrast checker → · Palette generator →

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