#B342A1#B342A1

#B342A1 is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.7% C 0.183 H 334.5°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#B342A1
RGBrgb(179, 66, 161)
HSLhsl(310, 46%, 48%)
HSVhsv(310, 63%, 70%)
CMYKcmyk(0%, 63.1%, 10.1%, 29.8%)
CIE-LABlab(47.05, 56.81, -28.81)
CIE-LCHlch(47.05, 63.70, 333.11°)
OKLaboklab(56.73% 0.1648 -0.0785)
OKLCHoklch(56.73% 0.183 334.5)
XYZxyz(26.9718, 16.0555, 35.3898)
Luminance0.1605 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342A1 #42B354
analogous
#8D42B3 #B342A1 #B34268
triadic
#B342A1 #A1B342 #42A1B3
tetradic
#B342A1 #B38D42 #42B354 #4268B3
square
#B342A1 #B38D42 #42B354 #4268B3
split-complementary
#B342A1 #68B342 #42B38D
monochromatic
#5A2151 #863279 #B342A1 #C86AB9 #D997CE

Accessibility & contrast

On white

4.99
#B342A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#B342A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342A1
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342A1#FFFFFF#000000##FFFFFF
##B342A11.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4165A4
Deuteranopia (green-blind)
#65769E
Tritanopia (blue-blind)
#BB4A6B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b342a1;
/* rgb */ color: rgb(179, 66, 161);
/* oklch */ color: oklch(56.7% 0.183 334.5);
Tailwind
colors: {
  custom: {
    50: '#cd7ebd',
    500: '#b342a1',
    950: '#000000',
  },
}
SCSS
$custom: #b342a1;
$custom-light: #cd7ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#b342a1",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 161
  },
  "hsl": {
    "h": 309.558,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56731,
    "c": 0.18255,
    "h": 334.5
  },
  "luminance": 0.16053
}

Semantic roles & 50–950 ramp

primary
#B342A1
secondary
#8CC495
accent
#D66752
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B342A1

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

Preview Lab → · Contrast checker → · Palette generator →

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