#B334A8#B334A8

#B334A8 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.7% C 0.206 H 331.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#B334A8
RGBrgb(179, 52, 168)
HSLhsl(305, 55%, 45%)
HSVhsv(305, 71%, 70%)
CMYKcmyk(0%, 70.9%, 6.1%, 29.8%)
CIE-LABlab(45.45, 63.33, -35.46)
CIE-LCHlch(45.45, 72.58, 330.75°)
OKLaboklab(55.69% 0.1813 -0.0975)
OKLCHoklch(55.69% 0.206 331.7)
XYZxyz(26.8863, 14.8690, 38.4921)
Luminance0.1487 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334A8 #34B33F
analogous
#7E34B3 #B334A8 #B33468
triadic
#B334A8 #A8B334 #34A8B3
tetradic
#B334A8 #B37E34 #34B33F #3468B3
square
#B334A8 #B37E34 #34B33F #3468B3
split-complementary
#B334A8 #68B334 #34B37E
monochromatic
#54184F #84267B #B334A8 #CE56C4 #DC86D4

Accessibility & contrast

On white

5.29
#B334A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B334A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334A8
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334A8#FFFFFF#000000##FFFFFF
##B334A81.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B60AB
Deuteranopia (green-blind)
#5C72A5
Tritanopia (blue-blind)
#BA426A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b334a8;
/* rgb */ color: rgb(179, 52, 168);
/* oklch */ color: oklch(55.7% 0.206 331.7);
Tailwind
colors: {
  custom: {
    50: '#cd77c2',
    500: '#b334a8',
    950: '#000000',
  },
}
SCSS
$custom: #b334a8;
$custom-light: #cd77c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b334a8",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 168
  },
  "hsl": {
    "h": 305.197,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55687,
    "c": 0.20582,
    "h": 331.7
  },
  "luminance": 0.14867
}

Semantic roles & 50–950 ramp

primary
#B334A8
secondary
#7DC584
accent
#DE5649
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B334A8

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

Preview Lab → · Contrast checker → · Palette generator →

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