#B334B8#B334B8

#B334B8 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.6% C 0.218 H 326.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B334B8
RGBrgb(179, 52, 184)
HSLhsl(298, 56%, 46%)
HSVhsv(298, 72%, 72%)
CMYKcmyk(2.7%, 71.7%, 0%, 27.8%)
CIE-LABlab(46.31, 65.94, -43.53)
CIE-LCHlch(46.31, 79.02, 326.57°)
OKLaboklab(56.58% 0.1816 -0.1209)
OKLCHoklch(56.58% 0.218 326.3)
XYZxyz(28.4696, 15.5023, 46.8308)
Luminance0.1550 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334B8 #39B834
analogous
#7134B8 #B334B8 #B8347B
triadic
#B334B8 #B8B334 #34B8B3
tetradic
#B334B8 #B87134 #39B834 #347BB8
square
#B334B8 #B87134 #39B834 #347BB8
split-complementary
#B334B8 #7BB834 #34B871
monochromatic
#561959 #852788 #B334B8 #CC59D0 #DA89DE

Accessibility & contrast

On white

5.12
#B334B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#B334B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334B8
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334B8#FFFFFF#000000##FFFFFF
##B334B81.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1364BC
Deuteranopia (green-blind)
#5373B5
Tritanopia (blue-blind)
#B84973
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b334b8;
/* rgb */ color: rgb(179, 52, 184);
/* oklch */ color: oklch(56.6% 0.218 326.3);
Tailwind
colors: {
  custom: {
    50: '#cd78ce',
    500: '#b334b8',
    950: '#000000',
  },
}
SCSS
$custom: #b334b8;
$custom-light: #cd78ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b334b8",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 297.727,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56583,
    "c": 0.21816,
    "h": 326.3
  },
  "luminance": 0.155
}

Semantic roles & 50–950 ramp

primary
#B334B8
secondary
#83C880
accent
#DF494E
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B334B8

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

Preview Lab → · Contrast checker → · Palette generator →

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