#B342AB#B342AB

#B342AB is a mid, vivid purple. Relative luminance 0.164; OKLCH L 57.2% C 0.190 H 330.6°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#B342AB
RGBrgb(179, 66, 171)
HSLhsl(304, 46%, 48%)
HSVhsv(304, 63%, 70%)
CMYKcmyk(0%, 63.1%, 4.5%, 29.8%)
CIE-LABlab(47.52, 58.44, -33.98)
CIE-LCHlch(47.52, 67.60, 329.83°)
OKLaboklab(57.23% 0.166 -0.0933)
OKLCHoklch(57.23% 0.19 330.6)
XYZxyz(27.8892, 16.4224, 40.2211)
Luminance0.1642 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342AB #42B34A
analogous
#8242B3 #B342AB #B34272
triadic
#B342AB #ABB342 #42ABB3
tetradic
#B342AB #B38242 #42B34A #4272B3
square
#B342AB #B38242 #42B34A #4272B3
split-complementary
#B342AB #72B342 #42B382
monochromatic
#5A2156 #863280 #B342AB #C86AC1 #D997D4

Accessibility & contrast

On white

4.90
#B342AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#B342AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342AB
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342AB#FFFFFF#000000##FFFFFF
##B342AB1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A67AE
Deuteranopia (green-blind)
#6176A8
Tritanopia (blue-blind)
#BA4E70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b342ab;
/* rgb */ color: rgb(179, 66, 171);
/* oklch */ color: oklch(57.2% 0.190 330.6);
Tailwind
colors: {
  custom: {
    50: '#cd7ec4',
    500: '#b342ab',
    950: '#000000',
  },
}
SCSS
$custom: #b342ab;
$custom-light: #cd7ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#b342ab",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 304.248,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57233,
    "c": 0.19042,
    "h": 330.6
  },
  "luminance": 0.1642
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B342AB

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

Preview Lab → · Contrast checker → · Palette generator →

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