#B040E1#B040E1

#B040E1 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.8% C 0.238 H 313.3°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#B040E1
RGBrgb(176, 64, 225)
HSLhsl(282, 73%, 57%)
HSVhsv(282, 72%, 88%)
CMYKcmyk(21.8%, 71.6%, 0%, 11.8%)
CIE-LABlab(49.90, 68.53, -61.43)
CIE-LCHlch(49.90, 92.03, 318.13°)
OKLaboklab(59.85% 0.1636 -0.1734)
OKLCHoklch(59.85% 0.238 313.3)
XYZxyz(33.3261, 18.3342, 73.0029)
Luminance0.1833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040E1 #71E140
analogous
#6040E1 #B040E1 #E140C2
triadic
#B040E1 #E1B040 #40E1B0
tetradic
#B040E1 #E16040 #71E140 #40C2E1
square
#B040E1 #E16040 #71E140 #40C2E1
split-complementary
#B040E1 #C2E140 #40E160
monochromatic
#6B1790 #921FC5 #B040E1 #C675E9 #DCAAF2

Accessibility & contrast

On white

4.50
#B040E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#B040E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B040E1
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040E1#FFFFFF#000000##000000
##B040E11.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E6
Deuteranopia (green-blind)
#3279DD
Tritanopia (blue-blind)
#AB638D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b040e1;
/* rgb */ color: rgb(176, 64, 225);
/* oklch */ color: oklch(59.8% 0.238 313.3);
Tailwind
colors: {
  custom: {
    50: '#cc7feb',
    500: '#b040e1',
    950: '#000000',
  },
}
SCSS
$custom: #b040e1;
$custom-light: #cc7feb;
$custom-dark: #000000;
JSON
{
  "hex": "#b040e1",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 281.739,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59847,
    "c": 0.23844,
    "h": 313.3
  },
  "luminance": 0.18333
}

Semantic roles & 50–950 ramp

primary
#B040E1
secondary
#B2DF9D
accent
#F03870
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B040E1

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

Preview Lab → · Contrast checker → · Palette generator →

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