#B040E8#B040E8

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

Color values

HEX#B040E8
RGBrgb(176, 64, 232)
HSLhsl(280, 79%, 58%)
HSVhsv(280, 72%, 91%)
CMYKcmyk(24.1%, 72.4%, 0%, 9%)
CIE-LABlab(50.36, 69.93, -64.64)
CIE-LCHlch(50.36, 95.23, 317.25°)
OKLaboklab(60.32% 0.1627 -0.1829)
OKLCHoklch(60.32% 0.245 311.7)
XYZxyz(34.3007, 18.7240, 78.1355)
Luminance0.1872 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040E8 #78E840
analogous
#5C40E8 #B040E8 #E840CC
triadic
#B040E8 #E8B040 #40E8B0
tetradic
#B040E8 #E85C40 #78E840 #40CCE8
square
#B040E8 #E85C40 #78E840 #40CCE8
split-complementary
#B040E8 #CCE840 #40E85C
monochromatic
#6E139B #9419D2 #B040E8 #C777EF #DDADF5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B040E8#FFFFFF#000000##000000
##B040E81.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)
#0073ED
Deuteranopia (green-blind)
#267AE4
Tritanopia (blue-blind)
#A96691
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b040e8;
/* rgb */ color: rgb(176, 64, 232);
/* oklch */ color: oklch(60.3% 0.245 311.7);
Tailwind
colors: {
  custom: {
    50: '#cc7ff0',
    500: '#b040e8',
    950: '#000000',
  },
}
SCSS
$custom: #b040e8;
$custom-light: #cc7ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#b040e8",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 232
  },
  "hsl": {
    "h": 280,
    "s": 78.505,
    "l": 58.039
  },
  "oklch": {
    "l": 0.60323,
    "c": 0.24476,
    "h": 311.7
  },
  "luminance": 0.18723
}

Semantic roles & 50–950 ramp

primary
#B040E8
secondary
#B7E3A0
accent
#F53374
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #B040E8

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

Preview Lab → · Contrast checker → · Palette generator →

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