#B342BD#B342BD

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

Color values

HEX#B342BD
RGBrgb(179, 66, 189)
HSLhsl(295, 48%, 50%)
HSVhsv(295, 65%, 74%)
CMYKcmyk(5.3%, 65.1%, 0%, 25.9%)
CIE-LABlab(48.46, 61.55, -43.05)
CIE-LCHlch(48.46, 75.11, 325.03°)
OKLaboklab(58.21% 0.167 -0.1196)
OKLCHoklch(58.21% 0.205 324.4)
XYZxyz(29.7232, 17.1560, 49.8801)
Luminance0.1715 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342BD #4CBD42
analogous
#7642BD #B342BD #BD4289
triadic
#B342BD #BDB342 #42BDB3
tetradic
#B342BD #BD7642 #4CBD42 #4289BD
square
#B342BD #BD7642 #4CBD42 #4289BD
split-complementary
#B342BD #89BD42 #42BD76
monochromatic
#5D2262 #883290 #B342BD #C56FCD #D79DDD

Accessibility & contrast

On white

4.74
#B342BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#B342BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342BD
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342BD#FFFFFF#000000##FFFFFF
##B342BD1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#296AC1
Deuteranopia (green-blind)
#5878BA
Tritanopia (blue-blind)
#B7557A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b342bd;
/* rgb */ color: rgb(179, 66, 189);
/* oklch */ color: oklch(58.2% 0.205 324.4);
Tailwind
colors: {
  custom: {
    50: '#cd7fd1',
    500: '#b342bd',
    950: '#000000',
  },
}
SCSS
$custom: #b342bd;
$custom-light: #cd7fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#b342bd",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 295.122,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.58211,
    "c": 0.20541,
    "h": 324.4
  },
  "luminance": 0.17154
}

Semantic roles & 50–950 ramp

primary
#B342BD
secondary
#96C992
accent
#D8505B
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B342BD

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

Preview Lab → · Contrast checker → · Palette generator →

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