#B342BC#B342BC

#B342BC is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.2% C 0.205 H 324.7°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#B342BC
RGBrgb(179, 66, 188)
HSLhsl(296, 48%, 50%)
HSVhsv(296, 65%, 74%)
CMYKcmyk(4.8%, 64.9%, 0%, 26.3%)
CIE-LABlab(48.40, 61.38, -42.55)
CIE-LCHlch(48.40, 74.68, 325.27°)
OKLaboklab(58.15% 0.167 -0.1181)
OKLCHoklch(58.15% 0.205 324.7)
XYZxyz(29.6150, 17.1127, 49.3104)
Luminance0.1711 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342BC #4BBC42
analogous
#7642BC #B342BC #BC4288
triadic
#B342BC #BCB342 #42BCB3
tetradic
#B342BC #BC7642 #4BBC42 #4288BC
square
#B342BC #BC7642 #4BBC42 #4288BC
split-complementary
#B342BC #88BC42 #42BC76
monochromatic
#5D2261 #88328F #B342BC #C56FCC #D89CDC

Accessibility & contrast

On white

4.75
#B342BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#B342BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342BC
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342BC#FFFFFF#000000##FFFFFF
##B342BC1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6AC0
Deuteranopia (green-blind)
#5878B9
Tritanopia (blue-blind)
#B75479
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b342bc;
/* rgb */ color: rgb(179, 66, 188);
/* oklch */ color: oklch(58.2% 0.205 324.7);
Tailwind
colors: {
  custom: {
    50: '#cd7fd1',
    500: '#b342bc',
    950: '#000000',
  },
}
SCSS
$custom: #b342bc;
$custom-light: #cd7fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#b342bc",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 295.574,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58154,
    "c": 0.20456,
    "h": 324.7
  },
  "luminance": 0.17111
}

Semantic roles & 50–950 ramp

primary
#B342BC
secondary
#95C991
accent
#D8505A
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B342BC

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

Preview Lab → · Contrast checker → · Palette generator →

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