#B342B3#B342B3

#B342B3 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.7% C 0.197 H 327.8°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#B342B3
RGBrgb(179, 66, 179)
HSLhsl(300, 46%, 48%)
HSVhsv(300, 63%, 70%)
CMYKcmyk(0%, 63.1%, 0%, 29.8%)
CIE-LABlab(47.93, 59.80, -38.05)
CIE-LCHlch(47.93, 70.88, 327.53°)
OKLaboklab(57.66% 0.1666 -0.1051)
OKLCHoklch(57.66% 0.197 327.8)
XYZxyz(28.6749, 16.7367, 44.3593)
Luminance0.1673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342B3 #42B342
analogous
#7A42B3 #B342B3 #B3427A
triadic
#B342B3 #B3B342 #42B3B3
tetradic
#B342B3 #B37A42 #42B342 #427AB3
square
#B342B3 #B37A42 #42B342 #427AB3
split-complementary
#B342B3 #7AB342 #42B37A
monochromatic
#5A215A #863286 #B342B3 #C86AC8 #D997D9

Accessibility & contrast

On white

4.83
#B342B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#B342B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342B3
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342B3#FFFFFF#000000##FFFFFF
##B342B31.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B6
Deuteranopia (green-blind)
#5D77B0
Tritanopia (blue-blind)
#B85175
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b342b3;
/* rgb */ color: rgb(179, 66, 179);
/* oklch */ color: oklch(57.7% 0.197 327.8);
Tailwind
colors: {
  custom: {
    50: '#cd7eca',
    500: '#b342b3',
    950: '#000000',
  },
}
SCSS
$custom: #b342b3;
$custom-light: #cd7eca;
$custom-dark: #000000;
JSON
{
  "hex": "#b342b3",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 300,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57656,
    "c": 0.19697,
    "h": 327.8
  },
  "luminance": 0.16735
}

Semantic roles & 50–950 ramp

primary
#B342B3
secondary
#8CC48C
accent
#D65252
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #B342B3

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

Preview Lab → · Contrast checker → · Palette generator →

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