#B342B9#B342B9

#B342B9 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.0% C 0.202 H 325.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#B342B9
RGBrgb(179, 66, 185)
HSLhsl(297, 47%, 49%)
HSVhsv(297, 64%, 73%)
CMYKcmyk(3.2%, 64.3%, 0%, 27.5%)
CIE-LABlab(48.24, 60.84, -41.06)
CIE-LCHlch(48.24, 73.40, 325.99°)
OKLaboklab(57.99% 0.1669 -0.1138)
OKLCHoklch(57.99% 0.202 325.7)
XYZxyz(29.2950, 16.9847, 47.6249)
Luminance0.1698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342B9 #48B942
analogous
#7842B9 #B342B9 #B94284
triadic
#B342B9 #B9B342 #42B9B3
tetradic
#B342B9 #B97842 #48B942 #4284B9
square
#B342B9 #B97842 #48B942 #4284B9
split-complementary
#B342B9 #84B942 #42B978
monochromatic
#5C225F #87328C #B342B9 #C66DCB #D89ADB

Accessibility & contrast

On white

4.78
#B342B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#B342B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342B9
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342B9#FFFFFF#000000##FFFFFF
##B342B91.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D69BD
Deuteranopia (green-blind)
#5A77B6
Tritanopia (blue-blind)
#B75378
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b342b9;
/* rgb */ color: rgb(179, 66, 185);
/* oklch */ color: oklch(58.0% 0.202 325.7);
Tailwind
colors: {
  custom: {
    50: '#cd7fce',
    500: '#b342b9',
    950: '#000000',
  },
}
SCSS
$custom: #b342b9;
$custom-light: #cd7fce;
$custom-dark: #000000;
JSON
{
  "hex": "#b342b9",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 185
  },
  "hsl": {
    "h": 296.975,
    "s": 47.41,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57986,
    "c": 0.20201,
    "h": 325.7
  },
  "luminance": 0.16983
}

Semantic roles & 50–950 ramp

primary
#B342B9
secondary
#92C790
accent
#D75158
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B342B9

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

Preview Lab → · Contrast checker → · Palette generator →

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