#B334B5#B334B5

#B334B5 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.4% C 0.216 H 327.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#B334B5
RGBrgb(179, 52, 181)
HSLhsl(299, 55%, 46%)
HSVhsv(299, 71%, 71%)
CMYKcmyk(1.1%, 71.3%, 0%, 29%)
CIE-LABlab(46.15, 65.44, -42.04)
CIE-LCHlch(46.15, 77.78, 327.29°)
OKLaboklab(56.41% 0.1816 -0.1165)
OKLCHoklch(56.41% 0.216 327.3)
XYZxyz(28.1585, 15.3779, 45.1922)
Luminance0.1538 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334B5 #36B534
analogous
#7234B5 #B334B5 #B53476
triadic
#B334B5 #B5B334 #34B5B3
tetradic
#B334B5 #B57234 #36B534 #3476B5
square
#B334B5 #B57234 #36B534 #3476B5
split-complementary
#B334B5 #76B534 #34B572
monochromatic
#551956 #842685 #B334B5 #CD57CF #DB87DC

Accessibility & contrast

On white

5.15
#B334B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B334B5
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334B5#FFFFFF#000000##FFFFFF
##B334B51.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A63B9
Deuteranopia (green-blind)
#5573B2
Tritanopia (blue-blind)
#B84871
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b334b5;
/* rgb */ color: rgb(179, 52, 181);
/* oklch */ color: oklch(56.4% 0.216 327.3);
Tailwind
colors: {
  custom: {
    50: '#cd78cc',
    500: '#b334b5',
    950: '#000000',
  },
}
SCSS
$custom: #b334b5;
$custom-light: #cd78cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b334b5",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 299.07,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56409,
    "c": 0.2158,
    "h": 327.3
  },
  "luminance": 0.15376
}

Semantic roles & 50–950 ramp

primary
#B334B5
secondary
#80C67F
accent
#DF494B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B334B5

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

Preview Lab → · Contrast checker → · Palette generator →

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