#B342CA#B342CA

#B342CA is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.0% C 0.217 H 320.4°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B342CA
RGBrgb(179, 66, 202)
HSLhsl(290, 56%, 53%)
HSVhsv(290, 67%, 79%)
CMYKcmyk(11.4%, 67.3%, 0%, 20.8%)
CIE-LABlab(49.19, 63.93, -49.41)
CIE-LCHlch(49.19, 80.80, 322.30°)
OKLaboklab(58.97% 0.167 -0.1381)
OKLCHoklch(58.97% 0.217 320.4)
XYZxyz(31.1980, 17.7460, 57.6477)
Luminance0.1774 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342CA #59CA42
analogous
#6F42CA #B342CA #CA429D
triadic
#B342CA #CAB342 #42CAB3
tetradic
#B342CA #CA6F42 #59CA42 #429DCA
square
#B342CA #CA6F42 #59CA42 #429DCA
split-complementary
#B342CA #9DCA42 #42CA6F
monochromatic
#642072 #8E2DA2 #B342CA #C672D7 #D9A2E5

Accessibility & contrast

On white

4.62
#B342CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#B342CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B342CA
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342CA#FFFFFF#000000##FFFFFF
##B342CA1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106DCE
Deuteranopia (green-blind)
#4F79C7
Tritanopia (blue-blind)
#B45A81
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b342ca;
/* rgb */ color: rgb(179, 66, 202);
/* oklch */ color: oklch(59.0% 0.217 320.4);
Tailwind
colors: {
  custom: {
    50: '#cd7fdb',
    500: '#b342ca',
    950: '#000000',
  },
}
SCSS
$custom: #b342ca;
$custom-light: #cd7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b342ca",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 289.853,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58972,
    "c": 0.2167,
    "h": 320.4
  },
  "luminance": 0.17744
}

Semantic roles & 50–950 ramp

primary
#B342CA
secondary
#A0D196
accent
#DF4862
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B342CA

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

Preview Lab → · Contrast checker → · Palette generator →

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