#B340E3#B340E3

#B340E3 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.4% C 0.241 H 313.8°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B340E3
RGBrgb(179, 64, 227)
HSLhsl(282, 74%, 57%)
HSVhsv(282, 72%, 89%)
CMYKcmyk(21.1%, 71.8%, 0%, 11%)
CIE-LABlab(50.45, 69.51, -61.65)
CIE-LCHlch(50.45, 92.91, 318.43°)
OKLaboklab(60.37% 0.1671 -0.174)
OKLCHoklch(60.37% 0.241 313.8)
XYZxyz(34.2865, 18.7977, 74.4804)
Luminance0.1880 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340E3 #70E340
analogous
#6240E3 #B340E3 #E340C2
triadic
#B340E3 #E3B340 #40E3B3
tetradic
#B340E3 #E36240 #70E340 #40C2E3
square
#B340E3 #E36240 #70E340 #40C2E3
split-complementary
#B340E3 #C2E340 #40E362
monochromatic
#6E1693 #961DC8 #B340E3 #C875EB #DDABF3

Accessibility & contrast

On white

4.41
#B340E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#B340E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B340E3
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340E3#FFFFFF#000000##000000
##B340E31.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E8
Deuteranopia (green-blind)
#347BDF
Tritanopia (blue-blind)
#AE638E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b340e3;
/* rgb */ color: rgb(179, 64, 227);
/* oklch */ color: oklch(60.4% 0.241 313.8);
Tailwind
colors: {
  custom: {
    50: '#ce7fed',
    500: '#b340e3',
    950: '#000000',
  },
}
SCSS
$custom: #b340e3;
$custom-light: #ce7fed;
$custom-dark: #000000;
JSON
{
  "hex": "#b340e3",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 282.331,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60366,
    "c": 0.24122,
    "h": 313.8
  },
  "luminance": 0.18797
}

Semantic roles & 50–950 ramp

primary
#B340E3
secondary
#B2E19E
accent
#F1376E
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B340E3

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

Preview Lab → · Contrast checker → · Palette generator →

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