#B342AA#B342AA

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

Color values

HEX#B342AA
RGBrgb(179, 66, 170)
HSLhsl(305, 46%, 48%)
HSVhsv(305, 63%, 70%)
CMYKcmyk(0%, 63.1%, 5%, 29.8%)
CIE-LABlab(47.47, 58.28, -33.47)
CIE-LCHlch(47.47, 67.20, 330.13°)
OKLaboklab(57.18% 0.1659 -0.0919)
OKLCHoklch(57.18% 0.19 331)
XYZxyz(27.7942, 16.3844, 39.7210)
Luminance0.1638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342AA #42B34B
analogous
#8342B3 #B342AA #B34271
triadic
#B342AA #AAB342 #42AAB3
tetradic
#B342AA #B38342 #42B34B #4271B3
square
#B342AA #B38342 #42B34B #4271B3
split-complementary
#B342AA #71B342 #42B383
monochromatic
#5A2155 #863280 #B342AA #C86AC1 #D997D3

Accessibility & contrast

On white

4.91
#B342AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B342AA
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342AA#FFFFFF#000000##FFFFFF
##B342AA1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B67AD
Deuteranopia (green-blind)
#6176A7
Tritanopia (blue-blind)
#BA4D70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b342aa;
/* rgb */ color: rgb(179, 66, 170);
/* oklch */ color: oklch(57.2% 0.190 331.0);
Tailwind
colors: {
  custom: {
    50: '#cd7ec3',
    500: '#b342aa',
    950: '#000000',
  },
}
SCSS
$custom: #b342aa;
$custom-light: #cd7ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#b342aa",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 304.779,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57182,
    "c": 0.18961,
    "h": 331
  },
  "luminance": 0.16382
}

Semantic roles & 50–950 ramp

primary
#B342AA
secondary
#8CC491
accent
#D65D52
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A12
muted
#827C81

Preview Lab

Preview with #B342AA

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

Preview Lab → · Contrast checker → · Palette generator →

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