#B342D1#B342D1

#B342D1 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.4% C 0.223 H 318.4°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B342D1
RGBrgb(179, 66, 209)
HSLhsl(287, 61%, 54%)
HSVhsv(287, 68%, 82%)
CMYKcmyk(14.4%, 68.4%, 0%, 18%)
CIE-LABlab(49.60, 65.25, -52.77)
CIE-LCHlch(49.60, 83.91, 321.04°)
OKLaboklab(59.4% 0.1667 -0.1479)
OKLCHoklch(59.4% 0.223 318.4)
XYZxyz(32.0457, 18.0850, 62.1120)
Luminance0.1808 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342D1 #60D142
analogous
#6C42D1 #B342D1 #D142A7
triadic
#B342D1 #D1B342 #42D1B3
tetradic
#B342D1 #D16C42 #60D142 #42A7D1
square
#B342D1 #D16C42 #60D142 #42A7D1
split-complementary
#B342D1 #A7D142 #42D16C
monochromatic
#671E7B #912AAC #B342D1 #C773DD #DBA4E9

Accessibility & contrast

On white

4.55
#B342D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#B342D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B342D1
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342D1#FFFFFF#000000##000000
##B342D11.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD5
Deuteranopia (green-blind)
#497ACE
Tritanopia (blue-blind)
#B25D85
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b342d1;
/* rgb */ color: rgb(179, 66, 209);
/* oklch */ color: oklch(59.4% 0.223 318.4);
Tailwind
colors: {
  custom: {
    50: '#ce7fe0',
    500: '#b342d1',
    950: '#000000',
  },
}
SCSS
$custom: #b342d1;
$custom-light: #ce7fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#b342d1",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 287.413,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59401,
    "c": 0.22288,
    "h": 318.4
  },
  "luminance": 0.18084
}

Semantic roles & 50–950 ramp

primary
#B342D1
secondary
#A6D699
accent
#E44465
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B342D1

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

Preview Lab → · Contrast checker → · Palette generator →

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