#B342B2#B342B2

#B342B2 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.6% C 0.196 H 328.1°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B342B2
RGBrgb(179, 66, 178)
HSLhsl(301, 46%, 48%)
HSVhsv(301, 63%, 70%)
CMYKcmyk(0%, 63.1%, 0.6%, 29.8%)
CIE-LABlab(47.88, 59.63, -37.54)
CIE-LCHlch(47.88, 70.46, 327.81°)
OKLaboklab(57.6% 0.1665 -0.1036)
OKLCHoklch(57.6% 0.196 328.1)
XYZxyz(28.5741, 16.6964, 43.8286)
Luminance0.1669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342B2 #42B343
analogous
#7B42B3 #B342B2 #B34279
triadic
#B342B2 #B2B342 #42B2B3
tetradic
#B342B2 #B37B42 #42B343 #4279B3
square
#B342B2 #B37B42 #42B343 #4279B3
split-complementary
#B342B2 #79B342 #42B37B
monochromatic
#5A2159 #863286 #B342B2 #C86AC7 #D997D8

Accessibility & contrast

On white

4.84
#B342B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#B342B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342B2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342B2#FFFFFF#000000##FFFFFF
##B342B21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3468B5
Deuteranopia (green-blind)
#5E77AF
Tritanopia (blue-blind)
#B85074
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b342b2;
/* rgb */ color: rgb(179, 66, 178);
/* oklch */ color: oklch(57.6% 0.196 328.1);
Tailwind
colors: {
  custom: {
    50: '#cd7ec9',
    500: '#b342b2',
    950: '#000000',
  },
}
SCSS
$custom: #b342b2;
$custom-light: #cd7ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#b342b2",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 300.531,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57603,
    "c": 0.19614,
    "h": 328.1
  },
  "luminance": 0.16694
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B342B2

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

Preview Lab → · Contrast checker → · Palette generator →

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