#B334B6#B334B6

#B334B6 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.5% C 0.217 H 327.0°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#B334B6
RGBrgb(179, 52, 182)
HSLhsl(299, 56%, 46%)
HSVhsv(299, 71%, 71%)
CMYKcmyk(1.6%, 71.4%, 0%, 28.6%)
CIE-LABlab(46.20, 65.61, -42.54)
CIE-LCHlch(46.20, 78.19, 327.04°)
OKLaboklab(56.47% 0.1816 -0.118)
OKLCHoklch(56.47% 0.217 327)
XYZxyz(28.2614, 15.4190, 45.7345)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334B6 #37B634
analogous
#7234B6 #B334B6 #B63478
triadic
#B334B6 #B6B334 #34B6B3
tetradic
#B334B6 #B67234 #37B634 #3478B6
square
#B334B6 #B67234 #37B634 #3478B6
split-complementary
#B334B6 #78B634 #34B672
monochromatic
#551957 #842686 #B334B6 #CD58CF #DB88DD

Accessibility & contrast

On white

5.14
#B334B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#B334B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334B6
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334B6#FFFFFF#000000##FFFFFF
##B334B61.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1863BA
Deuteranopia (green-blind)
#5473B3
Tritanopia (blue-blind)
#B84872
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b334b6;
/* rgb */ color: rgb(179, 52, 182);
/* oklch */ color: oklch(56.5% 0.217 327.0);
Tailwind
colors: {
  custom: {
    50: '#cd78cc',
    500: '#b334b6',
    950: '#000000',
  },
}
SCSS
$custom: #b334b6;
$custom-light: #cd78cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b334b6",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 182
  },
  "hsl": {
    "h": 298.615,
    "s": 55.556,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56466,
    "c": 0.21658,
    "h": 327
  },
  "luminance": 0.15417
}

Semantic roles & 50–950 ramp

primary
#B334B6
secondary
#81C77F
accent
#DF494C
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B334B6

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

Preview Lab → · Contrast checker → · Palette generator →

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