#B342CD#B342CD

#B342CD is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.2% C 0.219 H 319.5°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#B342CD
RGBrgb(179, 66, 205)
HSLhsl(289, 58%, 53%)
HSVhsv(289, 68%, 80%)
CMYKcmyk(12.7%, 67.8%, 0%, 19.6%)
CIE-LABlab(49.36, 64.49, -50.85)
CIE-LCHlch(49.36, 82.13, 321.74°)
OKLaboklab(59.15% 0.1669 -0.1423)
OKLCHoklch(59.15% 0.219 319.5)
XYZxyz(31.5567, 17.8894, 59.5366)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342CD #5CCD42
analogous
#6D42CD #B342CD #CD42A1
triadic
#B342CD #CDB342 #42CDB3
tetradic
#B342CD #CD6D42 #5CCD42 #42A1CD
square
#B342CD #CD6D42 #5CCD42 #42A1CD
split-complementary
#B342CD #A1CD42 #42CD6D
monochromatic
#651F76 #8F2CA6 #B342CD #C672DA #DAA3E7

Accessibility & contrast

On white

4.59
#B342CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#B342CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B342CD
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342CD#FFFFFF#000000##FFFFFF
##B342CD1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#036ED1
Deuteranopia (green-blind)
#4D79CA
Tritanopia (blue-blind)
#B35B83
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b342cd;
/* rgb */ color: rgb(179, 66, 205);
/* oklch */ color: oklch(59.2% 0.219 319.5);
Tailwind
colors: {
  custom: {
    50: '#cd7fdd',
    500: '#b342cd',
    950: '#000000',
  },
}
SCSS
$custom: #b342cd;
$custom-light: #cd7fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#b342cd",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 288.777,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.59154,
    "c": 0.21935,
    "h": 319.5
  },
  "luminance": 0.17888
}

Semantic roles & 50–950 ramp

primary
#B342CD
secondary
#A3D397
accent
#E14663
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B342CD

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

Preview Lab → · Contrast checker → · Palette generator →

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