#B342EA#B342EA

#B342EA is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 61.0% C 0.245 H 312.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B342EA
RGBrgb(179, 66, 234)
HSLhsl(280, 80%, 59%)
HSVhsv(280, 72%, 92%)
CMYKcmyk(23.5%, 71.8%, 0%, 8.2%)
CIE-LABlab(51.18, 70.14, -64.43)
CIE-LCHlch(51.18, 95.24, 317.43°)
OKLaboklab(61.03% 0.1643 -0.1821)
OKLCHoklch(61.03% 0.245 312.1)
XYZxyz(35.3872, 19.4216, 79.7106)
Luminance0.1942 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342EA #79EA42
analogous
#5F42EA #B342EA #EA42CD
triadic
#B342EA #EAB342 #42EAB3
tetradic
#B342EA #EA5F42 #79EA42 #42CDEA
square
#B342EA #EA5F42 #79EA42 #42CDEA
split-complementary
#B342EA #CDEA42 #42EA5F
monochromatic
#7112A0 #9818D7 #B342EA #C979F0 #DFB0F6

Accessibility & contrast

On white

4.30
#B342EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#B342EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B342EA
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342EA#FFFFFF#000000##000000
##B342EA1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074EF
Deuteranopia (green-blind)
#2C7CE6
Tritanopia (blue-blind)
#AC6793
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b342ea;
/* rgb */ color: rgb(179, 66, 234);
/* oklch */ color: oklch(61.0% 0.245 312.1);
Tailwind
colors: {
  custom: {
    50: '#cf80f2',
    500: '#b342ea',
    950: '#000000',
  },
}
SCSS
$custom: #b342ea;
$custom-light: #cf80f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b342ea",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 280.357,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61028,
    "c": 0.2453,
    "h": 312.1
  },
  "luminance": 0.19421
}

Semantic roles & 50–950 ramp

primary
#B342EA
secondary
#B8E5A3
accent
#F63172
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #B342EA

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

Preview Lab → · Contrast checker → · Palette generator →

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