#B334B2#B334B2

#B334B2 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.2% C 0.213 H 328.3°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#B334B2
RGBrgb(179, 52, 178)
HSLhsl(300, 55%, 45%)
HSVhsv(300, 71%, 70%)
CMYKcmyk(0%, 70.9%, 0.6%, 29.8%)
CIE-LABlab(45.98, 64.95, -40.53)
CIE-LCHlch(45.98, 76.56, 328.03°)
OKLaboklab(56.24% 0.1816 -0.1122)
OKLCHoklch(56.24% 0.213 328.3)
XYZxyz(27.8540, 15.2561, 43.5885)
Luminance0.1525 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334B2 #34B335
analogous
#7434B3 #B334B2 #B33473
triadic
#B334B2 #B2B334 #34B2B3
tetradic
#B334B2 #B37434 #34B335 #3473B3
square
#B334B2 #B37434 #34B335 #3473B3
split-complementary
#B334B2 #73B334 #34B374
monochromatic
#541854 #842683 #B334B2 #CE56CD #DC86DB

Accessibility & contrast

On white

5.18
#B334B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#B334B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334B2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334B2#FFFFFF#000000##FFFFFF
##B334B21.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B6
Deuteranopia (green-blind)
#5673AF
Tritanopia (blue-blind)
#B94770
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b334b2;
/* rgb */ color: rgb(179, 52, 178);
/* oklch */ color: oklch(56.2% 0.213 328.3);
Tailwind
colors: {
  custom: {
    50: '#cd78c9',
    500: '#b334b2',
    950: '#000000',
  },
}
SCSS
$custom: #b334b2;
$custom-light: #cd78c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b334b2",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 300.472,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56238,
    "c": 0.21346,
    "h": 328.3
  },
  "luminance": 0.15254
}

Semantic roles & 50–950 ramp

primary
#B334B2
secondary
#7DC57E
accent
#DE4B49
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B334B2

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

Preview Lab → · Contrast checker → · Palette generator →

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