#B342B1#B342B1

#B342B1 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.5% C 0.195 H 328.5°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#B342B1
RGBrgb(179, 66, 177)
HSLhsl(301, 46%, 48%)
HSVhsv(301, 63%, 70%)
CMYKcmyk(0%, 63.1%, 1.1%, 29.8%)
CIE-LABlab(47.82, 59.46, -37.04)
CIE-LCHlch(47.82, 70.05, 328.08°)
OKLaboklab(57.55% 0.1665 -0.1022)
OKLCHoklch(57.55% 0.195 328.5)
XYZxyz(28.4741, 16.6564, 43.3017)
Luminance0.1665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342B1 #42B344
analogous
#7C42B3 #B342B1 #B34278
triadic
#B342B1 #B1B342 #42B1B3
tetradic
#B342B1 #B37C42 #42B344 #4278B3
square
#B342B1 #B37C42 #42B344 #4278B3
split-complementary
#B342B1 #78B342 #42B37C
monochromatic
#5A2159 #863285 #B342B1 #C86AC6 #D997D7

Accessibility & contrast

On white

4.85
#B342B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#B342B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342B1
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342B1#FFFFFF#000000##FFFFFF
##B342B11.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3568B4
Deuteranopia (green-blind)
#5E77AE
Tritanopia (blue-blind)
#B95074
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b342b1;
/* rgb */ color: rgb(179, 66, 177);
/* oklch */ color: oklch(57.5% 0.195 328.5);
Tailwind
colors: {
  custom: {
    50: '#cd7ec9',
    500: '#b342b1',
    950: '#000000',
  },
}
SCSS
$custom: #b342b1;
$custom-light: #cd7ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#b342b1",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 301.062,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57549,
    "c": 0.19532,
    "h": 328.5
  },
  "luminance": 0.16654
}

Semantic roles & 50–950 ramp

primary
#B342B1
secondary
#8CC48D
accent
#D65452
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #B342B1

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

Preview Lab → · Contrast checker → · Palette generator →

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