#B334A6#B334A6

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

Color values

HEX#B334A6
RGBrgb(179, 52, 166)
HSLhsl(306, 55%, 45%)
HSVhsv(306, 71%, 70%)
CMYKcmyk(0%, 70.9%, 7.3%, 29.8%)
CIE-LABlab(45.35, 63.02, -34.43)
CIE-LCHlch(45.35, 71.81, 331.35°)
OKLaboklab(55.58% 0.1811 -0.0945)
OKLCHoklch(55.58% 0.204 332.4)
XYZxyz(26.7014, 14.7950, 37.5184)
Luminance0.1479 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334A6 #34B341
analogous
#8134B3 #B334A6 #B33466
triadic
#B334A6 #A6B334 #34A6B3
tetradic
#B334A6 #B38134 #34B341 #3466B3
square
#B334A6 #B38134 #34B341 #3466B3
split-complementary
#B334A6 #66B334 #34B381
monochromatic
#54184E #84267A #B334A6 #CE56C2 #DC86D3

Accessibility & contrast

On white

5.30
#B334A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#B334A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334A6
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334A6#FFFFFF#000000##FFFFFF
##B334A61.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b334a6;
/* rgb */ color: rgb(179, 52, 166);
/* oklch */ color: oklch(55.6% 0.204 332.4);
Tailwind
colors: {
  custom: {
    50: '#cd77c1',
    500: '#b334a6',
    950: '#000000',
  },
}
SCSS
$custom: #b334a6;
$custom-light: #cd77c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b334a6",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 166
  },
  "hsl": {
    "h": 306.142,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.5558,
    "c": 0.20433,
    "h": 332.4
  },
  "luminance": 0.14793
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B334A6

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

Preview Lab → · Contrast checker → · Palette generator →

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