#B342AF#B342AF

#B342AF is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.4% C 0.194 H 329.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#B342AF
RGBrgb(179, 66, 175)
HSLhsl(302, 46%, 48%)
HSVhsv(302, 63%, 70%)
CMYKcmyk(0%, 63.1%, 2.2%, 29.8%)
CIE-LABlab(47.72, 59.12, -36.02)
CIE-LCHlch(47.72, 69.23, 328.64°)
OKLaboklab(57.44% 0.1663 -0.0992)
OKLCHoklch(57.44% 0.194 329.2)
XYZxyz(28.2762, 16.5772, 42.2595)
Luminance0.1658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342AF #42B346
analogous
#7E42B3 #B342AF #B34276
triadic
#B342AF #AFB342 #42AFB3
tetradic
#B342AF #B37E42 #42B346 #4276B3
square
#B342AF #B37E42 #42B346 #4276B3
split-complementary
#B342AF #76B342 #42B37E
monochromatic
#5A2158 #863283 #B342AF #C86AC5 #D997D6

Accessibility & contrast

On white

4.87
#B342AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#B342AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342AF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342AF#FFFFFF#000000##FFFFFF
##B342AF1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3767B2
Deuteranopia (green-blind)
#5F77AC
Tritanopia (blue-blind)
#B94F73
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b342af;
/* rgb */ color: rgb(179, 66, 175);
/* oklch */ color: oklch(57.4% 0.194 329.2);
Tailwind
colors: {
  custom: {
    50: '#cd7ec7',
    500: '#b342af',
    950: '#000000',
  },
}
SCSS
$custom: #b342af;
$custom-light: #cd7ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#b342af",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 302.124,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57443,
    "c": 0.19367,
    "h": 329.2
  },
  "luminance": 0.16575
}

Semantic roles & 50–950 ramp

primary
#B342AF
secondary
#8CC48E
accent
#D65752
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #B342AF

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

Preview Lab → · Contrast checker → · Palette generator →

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