#B342AC#B342AC

#B342AC is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.3% C 0.191 H 330.3°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B342AC
RGBrgb(179, 66, 172)
HSLhsl(304, 46%, 48%)
HSVhsv(304, 63%, 70%)
CMYKcmyk(0%, 63.1%, 3.9%, 29.8%)
CIE-LABlab(47.57, 58.61, -34.49)
CIE-LCHlch(47.57, 68.01, 329.52°)
OKLaboklab(57.29% 0.1661 -0.0948)
OKLCHoklch(57.29% 0.191 330.3)
XYZxyz(27.9848, 16.4607, 40.7250)
Luminance0.1646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342AC #42B349
analogous
#8142B3 #B342AC #B34273
triadic
#B342AC #ACB342 #42ACB3
tetradic
#B342AC #B38142 #42B349 #4273B3
square
#B342AC #B38142 #42B349 #4273B3
split-complementary
#B342AC #73B342 #42B381
monochromatic
#5A2156 #863281 #B342AC #C86AC2 #D997D5

Accessibility & contrast

On white

4.89
#B342AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#B342AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342AC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342AC#FFFFFF#000000##FFFFFF
##B342AC1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3967AF
Deuteranopia (green-blind)
#6176A9
Tritanopia (blue-blind)
#B94E71
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b342ac;
/* rgb */ color: rgb(179, 66, 172);
/* oklch */ color: oklch(57.3% 0.191 330.3);
Tailwind
colors: {
  custom: {
    50: '#cd7ec5',
    500: '#b342ac',
    950: '#000000',
  },
}
SCSS
$custom: #b342ac;
$custom-light: #cd7ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#b342ac",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 303.717,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57285,
    "c": 0.19122,
    "h": 330.3
  },
  "luminance": 0.16459
}

Semantic roles & 50–950 ramp

primary
#B342AC
secondary
#8CC490
accent
#D65A52
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B342AC

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

Preview Lab → · Contrast checker → · Palette generator →

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