#B342B7#B342B7

#B342B7 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 57.9% C 0.200 H 326.4°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#B342B7
RGBrgb(179, 66, 183)
HSLhsl(298, 47%, 49%)
HSVhsv(298, 64%, 72%)
CMYKcmyk(2.2%, 63.9%, 0%, 28.2%)
CIE-LABlab(48.13, 60.49, -40.06)
CIE-LCHlch(48.13, 72.55, 326.49°)
OKLaboklab(57.88% 0.1668 -0.1109)
OKLCHoklch(57.88% 0.2 326.4)
XYZxyz(29.0853, 16.9009, 46.5208)
Luminance0.1690 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342B7 #46B742
analogous
#7942B7 #B342B7 #B74281
triadic
#B342B7 #B7B342 #42B7B3
tetradic
#B342B7 #B77942 #46B742 #4281B7
square
#B342B7 #B77942 #46B742 #4281B7
split-complementary
#B342B7 #81B742 #42B779
monochromatic
#5B225D #87328A #B342B7 #C76CCA #D899DA

Accessibility & contrast

On white

4.79
#B342B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#B342B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342B7
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342B7#FFFFFF#000000##FFFFFF
##B342B71.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F69BA
Deuteranopia (green-blind)
#5B77B4
Tritanopia (blue-blind)
#B85277
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b342b7;
/* rgb */ color: rgb(179, 66, 183);
/* oklch */ color: oklch(57.9% 0.200 326.4);
Tailwind
colors: {
  custom: {
    50: '#cd7fcd',
    500: '#b342b7',
    950: '#000000',
  },
}
SCSS
$custom: #b342b7;
$custom-light: #cd7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#b342b7",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 297.949,
    "s": 46.988,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57875,
    "c": 0.20032,
    "h": 326.4
  },
  "luminance": 0.16899
}

Semantic roles & 50–950 ramp

primary
#B342B7
secondary
#90C68F
accent
#D75156
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B13
muted
#837C82

Preview Lab

Preview with #B342B7

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

Preview Lab → · Contrast checker → · Palette generator →

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