#B342BB#B342BB

#B342BB is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.1% C 0.204 H 325.0°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B342BB
RGBrgb(179, 66, 187)
HSLhsl(296, 48%, 50%)
HSVhsv(296, 65%, 73%)
CMYKcmyk(4.3%, 64.7%, 0%, 26.7%)
CIE-LABlab(48.35, 61.20, -42.05)
CIE-LCHlch(48.35, 74.25, 325.50°)
OKLaboklab(58.1% 0.167 -0.1167)
OKLCHoklch(58.1% 0.204 325)
XYZxyz(29.5076, 17.0698, 48.7447)
Luminance0.1707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342BB #4ABB42
analogous
#7742BB #B342BB #BB4287
triadic
#B342BB #BBB342 #42BBB3
tetradic
#B342BB #BB7742 #4ABB42 #4287BB
square
#B342BB #BB7742 #4ABB42 #4287BB
split-complementary
#B342BB #87BB42 #42BB77
monochromatic
#5C2261 #88328E #B342BB #C66ECC #D89CDC

Accessibility & contrast

On white

4.76
#B342BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#B342BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342BB
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342BB#FFFFFF#000000##FFFFFF
##B342BB1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6ABF
Deuteranopia (green-blind)
#5978B8
Tritanopia (blue-blind)
#B75479
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b342bb;
/* rgb */ color: rgb(179, 66, 187);
/* oklch */ color: oklch(58.1% 0.204 325.0);
Tailwind
colors: {
  custom: {
    50: '#cd7fd0',
    500: '#b342bb',
    950: '#000000',
  },
}
SCSS
$custom: #b342bb;
$custom-light: #cd7fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#b342bb",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 296.033,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58098,
    "c": 0.20371,
    "h": 325
  },
  "luminance": 0.17068
}

Semantic roles & 50–950 ramp

primary
#B342BB
secondary
#94C891
accent
#D75059
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B342BB

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

Preview Lab → · Contrast checker → · Palette generator →

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