#B342C7#B342C7

#B342C7 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.8% C 0.214 H 321.3°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#B342C7
RGBrgb(179, 66, 199)
HSLhsl(291, 54%, 52%)
HSVhsv(291, 67%, 78%)
CMYKcmyk(10.1%, 66.8%, 0%, 22%)
CIE-LABlab(49.01, 63.37, -47.95)
CIE-LCHlch(49.01, 79.47, 322.89°)
OKLaboklab(58.79% 0.1671 -0.1339)
OKLCHoklch(58.79% 0.214 321.3)
XYZxyz(30.8463, 17.6053, 55.7951)
Luminance0.1760 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342C7 #56C742
analogous
#7042C7 #B342C7 #C74299
triadic
#B342C7 #C7B342 #42C7B3
tetradic
#B342C7 #C77042 #56C742 #4299C7
square
#B342C7 #C77042 #56C742 #4299C7
split-complementary
#B342C7 #99C742 #42C770
monochromatic
#62216E #8D2F9D #B342C7 #C671D5 #D9A0E3

Accessibility & contrast

On white

4.65
#B342C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#B342C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B342C7
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342C7#FFFFFF#000000##FFFFFF
##B342C71.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#186CCB
Deuteranopia (green-blind)
#5179C4
Tritanopia (blue-blind)
#B5597F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b342c7;
/* rgb */ color: rgb(179, 66, 199);
/* oklch */ color: oklch(58.8% 0.214 321.3);
Tailwind
colors: {
  custom: {
    50: '#cd7fd8',
    500: '#b342c7',
    950: '#000000',
  },
}
SCSS
$custom: #b342c7;
$custom-light: #cd7fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#b342c7",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 290.977,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58793,
    "c": 0.21407,
    "h": 321.3
  },
  "luminance": 0.17604
}

Semantic roles & 50–950 ramp

primary
#B342C7
secondary
#9ED095
accent
#DE4A60
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B15
muted
#837C83

Preview Lab

Preview with #B342C7

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

Preview Lab → · Contrast checker → · Palette generator →

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