#B334BC#B334BC

#B334BC is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.8% C 0.221 H 325.1°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#B334BC
RGBrgb(179, 52, 188)
HSLhsl(296, 57%, 47%)
HSVhsv(296, 72%, 74%)
CMYKcmyk(4.8%, 72.3%, 0%, 26.3%)
CIE-LABlab(46.54, 66.62, -45.51)
CIE-LCHlch(46.54, 80.68, 325.66°)
OKLaboklab(56.82% 0.1815 -0.1266)
OKLCHoklch(56.82% 0.221 325.1)
XYZxyz(28.8948, 15.6724, 49.0704)
Luminance0.1567 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334BC #3DBC34
analogous
#6F34BC #B334BC #BC3481
triadic
#B334BC #BCB334 #34BCB3
tetradic
#B334BC #BC6F34 #3DBC34 #3481BC
square
#B334BC #BC6F34 #3DBC34 #3481BC
split-complementary
#B334BC #81BC34 #34BC6F
monochromatic
#58195C #85278C #B334BC #CA5BD2 #D98BDF

Accessibility & contrast

On white

5.08
#B334BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#B334BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334BC
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334BC#FFFFFF#000000##FFFFFF
##B334BC1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0664C0
Deuteranopia (green-blind)
#5074B9
Tritanopia (blue-blind)
#B74B75
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b334bc;
/* rgb */ color: rgb(179, 52, 188);
/* oklch */ color: oklch(56.8% 0.221 325.1);
Tailwind
colors: {
  custom: {
    50: '#ce78d1',
    500: '#b334bc',
    950: '#000000',
  },
}
SCSS
$custom: #b334bc;
$custom-light: #ce78d1;
$custom-dark: #000000;
JSON
{
  "hex": "#b334bc",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 188
  },
  "hsl": {
    "h": 296.029,
    "s": 56.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56818,
    "c": 0.22133,
    "h": 325.1
  },
  "luminance": 0.15671
}

Semantic roles & 50–950 ramp

primary
#B334BC
secondary
#87C983
accent
#E04852
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B334BC

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

Preview Lab → · Contrast checker → · Palette generator →

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