#B342C2#B342C2

#B342C2 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.5% C 0.210 H 322.8°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#B342C2
RGBrgb(179, 66, 194)
HSLhsl(293, 51%, 51%)
HSVhsv(293, 66%, 76%)
CMYKcmyk(7.7%, 66%, 0%, 23.9%)
CIE-LABlab(48.73, 62.46, -45.51)
CIE-LCHlch(48.73, 77.28, 323.92°)
OKLaboklab(58.5% 0.1671 -0.1267)
OKLCHoklch(58.5% 0.21 322.8)
XYZxyz(30.2753, 17.3769, 52.7879)
Luminance0.1737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342C2 #51C242
analogous
#7342C2 #B342C2 #C24291
triadic
#B342C2 #C2B342 #42C2B3
tetradic
#B342C2 #C27342 #51C242 #4291C2
square
#B342C2 #C27342 #51C242 #4291C2
split-complementary
#B342C2 #91C242 #42C273
monochromatic
#602268 #8A3196 #B342C2 #C670D1 #D89FE0

Accessibility & contrast

On white

4.69
#B342C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#B342C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342C2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342C2#FFFFFF#000000##FFFFFF
##B342C21.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216BC6
Deuteranopia (green-blind)
#5478BF
Tritanopia (blue-blind)
#B6577D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b342c2;
/* rgb */ color: rgb(179, 66, 194);
/* oklch */ color: oklch(58.5% 0.210 322.8);
Tailwind
colors: {
  custom: {
    50: '#cd7fd5',
    500: '#b342c2',
    950: '#000000',
  },
}
SCSS
$custom: #b342c2;
$custom-light: #cd7fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#b342c2",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 292.969,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58498,
    "c": 0.20972,
    "h": 322.8
  },
  "luminance": 0.17375
}

Semantic roles & 50–950 ramp

primary
#B342C2
secondary
#9ACC94
accent
#DB4D5E
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B342C2

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

Preview Lab → · Contrast checker → · Palette generator →

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