#B342E7#B342E7

#B342E7 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.8% C 0.243 H 312.8°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#B342E7
RGBrgb(179, 66, 231)
HSLhsl(281, 77%, 58%)
HSVhsv(281, 71%, 91%)
CMYKcmyk(22.5%, 71.4%, 0%, 9.4%)
CIE-LABlab(50.98, 69.54, -63.06)
CIE-LCHlch(50.98, 93.87, 317.80°)
OKLaboklab(60.83% 0.1647 -0.1781)
OKLCHoklch(60.83% 0.243 312.8)
XYZxyz(34.9598, 19.2507, 77.4600)
Luminance0.1925 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342E7 #76E742
analogous
#6042E7 #B342E7 #E742C8
triadic
#B342E7 #E7B342 #42E7B3
tetradic
#B342E7 #E76042 #76E742 #42C8E7
square
#B342E7 #E76042 #76E742 #42C8E7
split-complementary
#B342E7 #C8E742 #42E760
monochromatic
#70149B #981BD1 #B342E7 #C978EE #DFAFF5

Accessibility & contrast

On white

4.33
#B342E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#B342E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B342E7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342E7#FFFFFF#000000##000000
##B342E71.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#317CE3
Tritanopia (blue-blind)
#AD6691
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b342e7;
/* rgb */ color: rgb(179, 66, 231);
/* oklch */ color: oklch(60.8% 0.243 312.8);
Tailwind
colors: {
  custom: {
    50: '#ce80ef',
    500: '#b342e7',
    950: '#000000',
  },
}
SCSS
$custom: #b342e7;
$custom-light: #ce80ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b342e7",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 281.091,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60825,
    "c": 0.24259,
    "h": 312.8
  },
  "luminance": 0.1925
}

Semantic roles & 50–950 ramp

primary
#B342E7
secondary
#B6E3A2
accent
#F43470
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #B342E7

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

Preview Lab → · Contrast checker → · Palette generator →

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