#B342D7#B342D7

#B342D7 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.8% C 0.228 H 316.8°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#B342D7
RGBrgb(179, 66, 215)
HSLhsl(286, 65%, 55%)
HSVhsv(286, 69%, 84%)
CMYKcmyk(16.7%, 69.3%, 0%, 15.7%)
CIE-LABlab(49.96, 66.40, -55.62)
CIE-LCHlch(49.96, 86.61, 320.05°)
OKLaboklab(59.78% 0.1663 -0.1563)
OKLCHoklch(59.78% 0.228 316.8)
XYZxyz(32.8025, 18.3878, 66.0981)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342D7 #66D742
analogous
#6842D7 #B342D7 #D742B1
triadic
#B342D7 #D7B342 #42D7B3
tetradic
#B342D7 #D76842 #66D742 #42B1D7
square
#B342D7 #D76842 #66D742 #42B1D7
split-complementary
#B342D7 #B1D742 #42D768
monochromatic
#6A1C83 #9326B5 #B342D7 #C775E2 #DCA7EC

Accessibility & contrast

On white

4.49
#B342D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#B342D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B342D7
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342D7#FFFFFF#000000##000000
##B342D71.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#447AD4
Tritanopia (blue-blind)
#B15F88
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b342d7;
/* rgb */ color: rgb(179, 66, 215);
/* oklch */ color: oklch(59.8% 0.228 316.8);
Tailwind
colors: {
  custom: {
    50: '#ce80e4',
    500: '#b342d7',
    950: '#000000',
  },
}
SCSS
$custom: #b342d7;
$custom-light: #ce80e4;
$custom-dark: #000000;
JSON
{
  "hex": "#b342d7",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 285.503,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59778,
    "c": 0.22822,
    "h": 316.8
  },
  "luminance": 0.18386
}

Semantic roles & 50–950 ramp

primary
#B342D7
secondary
#AADA9B
accent
#E84068
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B342D7

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

Preview Lab → · Contrast checker → · Palette generator →

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