#B334B4#B334B4

#B334B4 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.4% C 0.215 H 327.6°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B334B4
RGBrgb(179, 52, 180)
HSLhsl(300, 55%, 45%)
HSVhsv(300, 71%, 71%)
CMYKcmyk(0.6%, 71.1%, 0%, 29.4%)
CIE-LABlab(46.09, 65.28, -41.54)
CIE-LCHlch(46.09, 77.37, 327.53°)
OKLaboklab(56.35% 0.1816 -0.1151)
OKLCHoklch(56.35% 0.215 327.6)
XYZxyz(28.0562, 15.3370, 44.6538)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334B4 #35B434
analogous
#7334B4 #B334B4 #B43475
triadic
#B334B4 #B4B334 #34B4B3
tetradic
#B334B4 #B47334 #35B434 #3475B4
square
#B334B4 #B47334 #35B434 #3475B4
split-complementary
#B334B4 #75B434 #34B473
monochromatic
#551955 #842685 #B334B4 #CD57CE #DB86DC

Accessibility & contrast

On white

5.16
#B334B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B334B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334B4
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334B4#FFFFFF#000000##FFFFFF
##B334B41.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C63B8
Deuteranopia (green-blind)
#5573B1
Tritanopia (blue-blind)
#B84871
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b334b4;
/* rgb */ color: rgb(179, 52, 180);
/* oklch */ color: oklch(56.4% 0.215 327.6);
Tailwind
colors: {
  custom: {
    50: '#cd78cb',
    500: '#b334b4',
    950: '#000000',
  },
}
SCSS
$custom: #b334b4;
$custom-light: #cd78cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b334b4",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 299.531,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56352,
    "c": 0.21502,
    "h": 327.6
  },
  "luminance": 0.15335
}

Semantic roles & 50–950 ramp

primary
#B334B4
secondary
#7FC67E
accent
#DF494A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B334B4

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

Preview Lab → · Contrast checker → · Palette generator →

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