#B334A7#B334A7

#B334A7 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.6% C 0.205 H 332.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#B334A7
RGBrgb(179, 52, 167)
HSLhsl(306, 55%, 45%)
HSVhsv(306, 71%, 70%)
CMYKcmyk(0%, 70.9%, 6.7%, 29.8%)
CIE-LABlab(45.40, 63.18, -34.95)
CIE-LCHlch(45.40, 72.20, 331.05°)
OKLaboklab(55.63% 0.1812 -0.096)
OKLCHoklch(55.63% 0.205 332.1)
XYZxyz(26.7935, 14.8319, 38.0034)
Luminance0.1483 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334A7 #34B340
analogous
#7F34B3 #B334A7 #B33468
triadic
#B334A7 #A7B334 #34A7B3
tetradic
#B334A7 #B37F34 #34B340 #3468B3
square
#B334A7 #B37F34 #34B340 #3468B3
split-complementary
#B334A7 #68B334 #34B37F
monochromatic
#54184F #84267B #B334A7 #CE56C3 #DC86D4

Accessibility & contrast

On white

5.30
#B334A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B334A7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334A7#FFFFFF#000000##FFFFFF
##B334A71.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C60AA
Deuteranopia (green-blind)
#5C72A4
Tritanopia (blue-blind)
#BB416A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b334a7;
/* rgb */ color: rgb(179, 52, 167);
/* oklch */ color: oklch(55.6% 0.205 332.1);
Tailwind
colors: {
  custom: {
    50: '#cd77c1',
    500: '#b334a7',
    950: '#000000',
  },
}
SCSS
$custom: #b334a7;
$custom-light: #cd77c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b334a7",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 167
  },
  "hsl": {
    "h": 305.669,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55633,
    "c": 0.20507,
    "h": 332.1
  },
  "luminance": 0.1483
}

Semantic roles & 50–950 ramp

primary
#B334A7
secondary
#7DC584
accent
#DE5849
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B334A7

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

Preview Lab → · Contrast checker → · Palette generator →

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