#B334A0#B334A0

#B334A0 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.3% C 0.200 H 334.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B334A0
RGBrgb(179, 52, 160)
HSLhsl(309, 55%, 45%)
HSVhsv(309, 71%, 70%)
CMYKcmyk(0%, 70.9%, 10.6%, 29.8%)
CIE-LABlab(45.05, 62.09, -31.33)
CIE-LCHlch(45.05, 69.55, 333.23°)
OKLaboklab(55.27% 0.1807 -0.0856)
OKLCHoklch(55.27% 0.2 334.6)
XYZxyz(26.1638, 14.5800, 34.6871)
Luminance0.1458 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334A0 #34B347
analogous
#8634B3 #B334A0 #B33461
triadic
#B334A0 #A0B334 #34A0B3
tetradic
#B334A0 #B38634 #34B347 #3461B3
square
#B334A0 #B38634 #34B347 #3461B3
split-complementary
#B334A0 #61B334 #34B386
monochromatic
#54184B #842676 #B334A0 #CE56BC #DC86CF

Accessibility & contrast

On white

5.36
#B334A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B334A0
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334A0#FFFFFF#000000##FFFFFF
##B334A01.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335FA3
Deuteranopia (green-blind)
#5F719D
Tritanopia (blue-blind)
#BC3E66
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b334a0;
/* rgb */ color: rgb(179, 52, 160);
/* oklch */ color: oklch(55.3% 0.200 334.6);
Tailwind
colors: {
  custom: {
    50: '#cd77bc',
    500: '#b334a0',
    950: '#000000',
  },
}
SCSS
$custom: #b334a0;
$custom-light: #cd77bc;
$custom-dark: #000000;
JSON
{
  "hex": "#b334a0",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 160
  },
  "hsl": {
    "h": 308.976,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55267,
    "c": 0.19992,
    "h": 334.6
  },
  "luminance": 0.14578
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B334A0

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

Preview Lab → · Contrast checker → · Palette generator →

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