#B342C4#B342C4

#B342C4 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.6% C 0.211 H 322.2°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#B342C4
RGBrgb(179, 66, 196)
HSLhsl(292, 52%, 51%)
HSVhsv(292, 66%, 77%)
CMYKcmyk(8.7%, 66.3%, 0%, 23.1%)
CIE-LABlab(48.84, 62.82, -46.49)
CIE-LCHlch(48.84, 78.15, 323.50°)
OKLaboklab(58.61% 0.1671 -0.1296)
OKLCHoklch(58.61% 0.211 322.2)
XYZxyz(30.5014, 17.4673, 53.9788)
Luminance0.1747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342C4 #53C442
analogous
#7242C4 #B342C4 #C44294
triadic
#B342C4 #C4B342 #42C4B3
tetradic
#B342C4 #C47242 #53C442 #4294C4
square
#B342C4 #C47242 #53C442 #4294C4
split-complementary
#B342C4 #94C442 #42C472
monochromatic
#61216A #8B3099 #B342C4 #C671D3 #D99FE1

Accessibility & contrast

On white

4.67
#B342C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#B342C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B342C4
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342C4#FFFFFF#000000##FFFFFF
##B342C41.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E6CC8
Deuteranopia (green-blind)
#5378C1
Tritanopia (blue-blind)
#B5587E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b342c4;
/* rgb */ color: rgb(179, 66, 196);
/* oklch */ color: oklch(58.6% 0.211 322.2);
Tailwind
colors: {
  custom: {
    50: '#cd7fd6',
    500: '#b342c4',
    950: '#000000',
  },
}
SCSS
$custom: #b342c4;
$custom-light: #cd7fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#b342c4",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 292.154,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.58615,
    "c": 0.21146,
    "h": 322.2
  },
  "luminance": 0.17466
}

Semantic roles & 50–950 ramp

primary
#B342C4
secondary
#9CCE94
accent
#DC4C5F
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B342C4

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

Preview Lab → · Contrast checker → · Palette generator →

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