#B334AF#B334AF

#B334AF is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.1% C 0.211 H 329.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B334AF
RGBrgb(179, 52, 175)
HSLhsl(302, 55%, 45%)
HSVhsv(302, 71%, 70%)
CMYKcmyk(0%, 70.9%, 2.2%, 29.8%)
CIE-LABlab(45.82, 64.45, -39.02)
CIE-LCHlch(45.82, 75.35, 328.81°)
OKLaboklab(56.07% 0.1816 -0.1078)
OKLCHoklch(56.07% 0.211 329.3)
XYZxyz(27.5560, 15.1369, 42.0195)
Luminance0.1514 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334AF #34B338
analogous
#7834B3 #B334AF #B3346F
triadic
#B334AF #AFB334 #34AFB3
tetradic
#B334AF #B37834 #34B338 #346FB3
square
#B334AF #B37834 #34B338 #346FB3
split-complementary
#B334AF #6FB334 #34B378
monochromatic
#541852 #842681 #B334AF #CE56CA #DC86D9

Accessibility & contrast

On white

5.21
#B334AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B334AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334AF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334AF#FFFFFF#000000##FFFFFF
##B334AF1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2362B2
Deuteranopia (green-blind)
#5872AC
Tritanopia (blue-blind)
#B9456E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b334af;
/* rgb */ color: rgb(179, 52, 175);
/* oklch */ color: oklch(56.1% 0.211 329.3);
Tailwind
colors: {
  custom: {
    50: '#cd78c7',
    500: '#b334af',
    950: '#000000',
  },
}
SCSS
$custom: #b334af;
$custom-light: #cd78c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b334af",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 301.89,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56069,
    "c": 0.21114,
    "h": 329.3
  },
  "luminance": 0.15135
}

Semantic roles & 50–950 ramp

primary
#B334AF
secondary
#7DC580
accent
#DE4E49
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B334AF

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

Preview Lab → · Contrast checker → · Palette generator →

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