#B342CC#B342CC

#B342CC is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.1% C 0.218 H 319.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#B342CC
RGBrgb(179, 66, 204)
HSLhsl(289, 58%, 53%)
HSVhsv(289, 68%, 80%)
CMYKcmyk(12.3%, 67.6%, 0%, 20%)
CIE-LABlab(49.30, 64.30, -50.37)
CIE-LCHlch(49.30, 81.68, 321.93°)
OKLaboklab(59.09% 0.1669 -0.1409)
OKLCHoklch(59.09% 0.218 319.8)
XYZxyz(31.4363, 17.8413, 58.9029)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342CC #5BCC42
analogous
#6E42CC #B342CC #CC42A0
triadic
#B342CC #CCB342 #42CCB3
tetradic
#B342CC #CC6E42 #5BCC42 #42A0CC
square
#B342CC #CC6E42 #5BCC42 #42A0CC
split-complementary
#B342CC #A0CC42 #42CC6E
monochromatic
#651F74 #8F2CA4 #B342CC #C672D9 #DAA2E6

Accessibility & contrast

On white

4.60
#B342CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#B342CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B342CC
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342CC#FFFFFF#000000##FFFFFF
##B342CC1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#086DD0
Deuteranopia (green-blind)
#4D79C9
Tritanopia (blue-blind)
#B45B82
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b342cc;
/* rgb */ color: rgb(179, 66, 204);
/* oklch */ color: oklch(59.1% 0.218 319.8);
Tailwind
colors: {
  custom: {
    50: '#cd7fdc',
    500: '#b342cc',
    950: '#000000',
  },
}
SCSS
$custom: #b342cc;
$custom-light: #cd7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#b342cc",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 289.13,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59093,
    "c": 0.21846,
    "h": 319.8
  },
  "luminance": 0.1784
}

Semantic roles & 50–950 ramp

primary
#B342CC
secondary
#A2D397
accent
#E14763
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B342CC

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

Preview Lab → · Contrast checker → · Palette generator →

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