#B342A2#B342A2

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

Color values

HEX#B342A2
RGBrgb(179, 66, 162)
HSLhsl(309, 46%, 48%)
HSVhsv(309, 63%, 70%)
CMYKcmyk(0%, 63.1%, 9.5%, 29.8%)
CIE-LABlab(47.09, 56.97, -29.33)
CIE-LCHlch(47.09, 64.08, 332.76°)
OKLaboklab(56.78% 0.1649 -0.08)
OKLCHoklch(56.78% 0.183 334.1)
XYZxyz(27.0604, 16.0909, 35.8560)
Luminance0.1609 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342A2 #42B353
analogous
#8C42B3 #B342A2 #B34269
triadic
#B342A2 #A2B342 #42A2B3
tetradic
#B342A2 #B38C42 #42B353 #4269B3
square
#B342A2 #B38C42 #42B353 #4269B3
split-complementary
#B342A2 #69B342 #42B38C
monochromatic
#5A2151 #86327A #B342A2 #C86ABA #D997CF

Accessibility & contrast

On white

4.98
#B342A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#B342A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342A2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342A2#FFFFFF#000000##FFFFFF
##B342A21.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4065A5
Deuteranopia (green-blind)
#65769F
Tritanopia (blue-blind)
#BB4A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b342a2;
/* rgb */ color: rgb(179, 66, 162);
/* oklch */ color: oklch(56.8% 0.183 334.1);
Tailwind
colors: {
  custom: {
    50: '#cd7ebe',
    500: '#b342a2',
    950: '#000000',
  },
}
SCSS
$custom: #b342a2;
$custom-light: #cd7ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#b342a2",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 309.027,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5678,
    "c": 0.18331,
    "h": 334.1
  },
  "luminance": 0.16089
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B342A2

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

Preview Lab → · Contrast checker → · Palette generator →

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