#B334A1#B334A1

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

Color values

HEX#B334A1
RGBrgb(179, 52, 161)
HSLhsl(309, 55%, 45%)
HSVhsv(309, 71%, 70%)
CMYKcmyk(0%, 70.9%, 10.1%, 29.8%)
CIE-LABlab(45.10, 62.25, -31.85)
CIE-LCHlch(45.10, 69.92, 332.90°)
OKLaboklab(55.32% 0.1808 -0.0871)
OKLCHoklch(55.32% 0.201 334.3)
XYZxyz(26.2517, 14.6151, 35.1497)
Luminance0.1461 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334A1 #34B346
analogous
#8534B3 #B334A1 #B33461
triadic
#B334A1 #A1B334 #34A1B3
tetradic
#B334A1 #B38534 #34B346 #3461B3
square
#B334A1 #B38534 #34B346 #3461B3
split-complementary
#B334A1 #61B334 #34B385
monochromatic
#54184C #842676 #B334A1 #CE56BD #DC86D0

Accessibility & contrast

On white

5.35
#B334A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#B334A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334A1
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334A1#FFFFFF#000000##FFFFFF
##B334A11.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325FA4
Deuteranopia (green-blind)
#5F719E
Tritanopia (blue-blind)
#BB3F66
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b334a1;
/* rgb */ color: rgb(179, 52, 161);
/* oklch */ color: oklch(55.3% 0.201 334.3);
Tailwind
colors: {
  custom: {
    50: '#cd77bd',
    500: '#b334a1',
    950: '#000000',
  },
}
SCSS
$custom: #b334a1;
$custom-light: #cd77bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b334a1",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 161
  },
  "hsl": {
    "h": 308.504,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55319,
    "c": 0.20065,
    "h": 334.3
  },
  "luminance": 0.14613
}

Semantic roles & 50–950 ramp

primary
#B334A1
secondary
#7DC588
accent
#DE5F49
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B334A1

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

Preview Lab → · Contrast checker → · Palette generator →

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