#B340E1#B340E1

#B340E1 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.2% C 0.239 H 314.3°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#B340E1
RGBrgb(179, 64, 225)
HSLhsl(283, 73%, 57%)
HSVhsv(283, 72%, 88%)
CMYKcmyk(20.4%, 71.6%, 0%, 11.8%)
CIE-LABlab(50.32, 69.12, -60.73)
CIE-LCHlch(50.32, 92.01, 318.70°)
OKLaboklab(60.23% 0.1673 -0.1713)
OKLCHoklch(60.23% 0.239 314.3)
XYZxyz(34.0121, 18.6879, 73.0350)
Luminance0.1869 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340E1 #6EE140
analogous
#6340E1 #B340E1 #E140BF
triadic
#B340E1 #E1B340 #40E1B3
tetradic
#B340E1 #E16340 #6EE140 #40BFE1
square
#B340E1 #E16340 #6EE140 #40BFE1
split-complementary
#B340E1 #BFE140 #40E163
monochromatic
#6D1790 #951FC5 #B340E1 #C875E9 #DDAAF2

Accessibility & contrast

On white

4.43
#B340E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#B340E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B340E1
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340E1#FFFFFF#000000##000000
##B340E11.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E6
Deuteranopia (green-blind)
#377BDD
Tritanopia (blue-blind)
#AF638D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b340e1;
/* rgb */ color: rgb(179, 64, 225);
/* oklch */ color: oklch(60.2% 0.239 314.3);
Tailwind
colors: {
  custom: {
    50: '#ce7feb',
    500: '#b340e1',
    950: '#000000',
  },
}
SCSS
$custom: #b340e1;
$custom-light: #ce7feb;
$custom-dark: #000000;
JSON
{
  "hex": "#b340e1",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 282.857,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60233,
    "c": 0.23944,
    "h": 314.3
  },
  "luminance": 0.18687
}

Semantic roles & 50–950 ramp

primary
#B340E1
secondary
#B0DF9D
accent
#F0386D
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B340E1

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

Preview Lab → · Contrast checker → · Palette generator →

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