#B342B0#B342B0

#B342B0 is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.5% C 0.194 H 328.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#B342B0
RGBrgb(179, 66, 176)
HSLhsl(302, 46%, 48%)
HSVhsv(302, 63%, 70%)
CMYKcmyk(0%, 63.1%, 1.7%, 29.8%)
CIE-LABlab(47.77, 59.29, -36.53)
CIE-LCHlch(47.77, 69.64, 328.36°)
OKLaboklab(57.5% 0.1664 -0.1007)
OKLCHoklch(57.5% 0.194 328.8)
XYZxyz(28.3748, 16.6167, 42.7787)
Luminance0.1661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342B0 #42B345
analogous
#7D42B3 #B342B0 #B34277
triadic
#B342B0 #B0B342 #42B0B3
tetradic
#B342B0 #B37D42 #42B345 #4277B3
square
#B342B0 #B37D42 #42B345 #4277B3
split-complementary
#B342B0 #77B342 #42B37D
monochromatic
#5A2158 #863284 #B342B0 #C86AC6 #D997D7

Accessibility & contrast

On white

4.86
#B342B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#B342B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342B0
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342B0#FFFFFF#000000##FFFFFF
##B342B01.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3668B3
Deuteranopia (green-blind)
#5F77AD
Tritanopia (blue-blind)
#B95073
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b342b0;
/* rgb */ color: rgb(179, 66, 176);
/* oklch */ color: oklch(57.5% 0.194 328.8);
Tailwind
colors: {
  custom: {
    50: '#cd7ec8',
    500: '#b342b0',
    950: '#000000',
  },
}
SCSS
$custom: #b342b0;
$custom-light: #cd7ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#b342b0",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 176
  },
  "hsl": {
    "h": 301.593,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57496,
    "c": 0.19449,
    "h": 328.8
  },
  "luminance": 0.16615
}

Semantic roles & 50–950 ramp

primary
#B342B0
secondary
#8CC48E
accent
#D65652
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #B342B0

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

Preview Lab → · Contrast checker → · Palette generator →

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