#B342C0#B342C0

#B342C0 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.4% C 0.208 H 323.4°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B342C0
RGBrgb(179, 66, 192)
HSLhsl(294, 50%, 51%)
HSVhsv(294, 66%, 75%)
CMYKcmyk(6.8%, 65.6%, 0%, 24.7%)
CIE-LABlab(48.62, 62.09, -44.53)
CIE-LCHlch(48.62, 76.41, 324.36°)
OKLaboklab(58.38% 0.1671 -0.1239)
OKLCHoklch(58.38% 0.208 323.4)
XYZxyz(30.0522, 17.2876, 51.6129)
Luminance0.1729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342C0 #4FC042
analogous
#7442C0 #B342C0 #C0428E
triadic
#B342C0 #C0B342 #42C0B3
tetradic
#B342C0 #C07442 #4FC042 #428EC0
square
#B342C0 #C07442 #4FC042 #428EC0
split-complementary
#B342C0 #8EC042 #42C074
monochromatic
#5F2266 #893194 #B342C0 #C570CF #D89EDF

Accessibility & contrast

On white

4.71
#B342C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#B342C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342C0
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342C0#FFFFFF#000000##FFFFFF
##B342C01.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246BC4
Deuteranopia (green-blind)
#5678BD
Tritanopia (blue-blind)
#B6567C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b342c0;
/* rgb */ color: rgb(179, 66, 192);
/* oklch */ color: oklch(58.4% 0.208 323.4);
Tailwind
colors: {
  custom: {
    50: '#cd7fd3',
    500: '#b342c0',
    950: '#000000',
  },
}
SCSS
$custom: #b342c0;
$custom-light: #cd7fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#b342c0",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 293.81,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58383,
    "c": 0.20799,
    "h": 323.4
  },
  "luminance": 0.17286
}

Semantic roles & 50–950 ramp

primary
#B342C0
secondary
#99CB93
accent
#DA4E5D
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B342C0

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

Preview Lab → · Contrast checker → · Palette generator →

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