#B334A9#B334A9

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

Color values

HEX#B334A9
RGBrgb(179, 52, 169)
HSLhsl(305, 55%, 45%)
HSVhsv(305, 71%, 70%)
CMYKcmyk(0%, 70.9%, 5.6%, 29.8%)
CIE-LABlab(45.51, 63.49, -35.97)
CIE-LCHlch(45.51, 72.97, 330.46°)
OKLaboklab(55.74% 0.1813 -0.099)
OKLCHoklch(55.74% 0.207 331.4)
XYZxyz(26.9798, 14.9064, 38.9847)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334A9 #34B33E
analogous
#7D34B3 #B334A9 #B3346A
triadic
#B334A9 #A9B334 #34A9B3
tetradic
#B334A9 #B37D34 #34B33E #346AB3
square
#B334A9 #B37D34 #34B33E #346AB3
split-complementary
#B334A9 #6AB334 #34B37D
monochromatic
#54184F #84267C #B334A9 #CE56C5 #DC86D5

Accessibility & contrast

On white

5.28
#B334A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B334A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334A9
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334A9#FFFFFF#000000##FFFFFF
##B334A91.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A60AC
Deuteranopia (green-blind)
#5B72A6
Tritanopia (blue-blind)
#BA426B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b334a9;
/* rgb */ color: rgb(179, 52, 169);
/* oklch */ color: oklch(55.7% 0.207 331.4);
Tailwind
colors: {
  custom: {
    50: '#cd77c3',
    500: '#b334a9',
    950: '#000000',
  },
}
SCSS
$custom: #b334a9;
$custom-light: #cd77c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b334a9",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 169
  },
  "hsl": {
    "h": 304.724,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.5574,
    "c": 0.20658,
    "h": 331.4
  },
  "luminance": 0.14904
}

Semantic roles & 50–950 ramp

primary
#B334A9
secondary
#7DC583
accent
#DE5549
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B334A9

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

Preview Lab → · Contrast checker → · Palette generator →

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