#B040E3#B040E3

#B040E3 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 60.0% C 0.240 H 312.9°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#B040E3
RGBrgb(176, 64, 227)
HSLhsl(281, 74%, 57%)
HSVhsv(281, 72%, 89%)
CMYKcmyk(22.5%, 71.8%, 0%, 11%)
CIE-LABlab(50.03, 68.93, -62.35)
CIE-LCHlch(50.03, 92.94, 317.87°)
OKLaboklab(59.98% 0.1634 -0.1761)
OKLCHoklch(59.98% 0.24 312.9)
XYZxyz(33.6005, 18.4439, 74.4482)
Luminance0.1844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040E3 #73E340
analogous
#5F40E3 #B040E3 #E340C5
triadic
#B040E3 #E3B040 #40E3B0
tetradic
#B040E3 #E35F40 #73E340 #40C5E3
square
#B040E3 #E35F40 #73E340 #40C5E3
split-complementary
#B040E3 #C5E340 #40E35F
monochromatic
#6C1693 #931DC8 #B040E3 #C675EB #DCABF3

Accessibility & contrast

On white

4.48
#B040E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#B040E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B040E3
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040E3#FFFFFF#000000##000000
##B040E31.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E8
Deuteranopia (green-blind)
#2F79DF
Tritanopia (blue-blind)
#AA648E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b040e3;
/* rgb */ color: rgb(176, 64, 227);
/* oklch */ color: oklch(60.0% 0.240 312.9);
Tailwind
colors: {
  custom: {
    50: '#cc7fed',
    500: '#b040e3',
    950: '#000000',
  },
}
SCSS
$custom: #b040e3;
$custom-light: #cc7fed;
$custom-dark: #000000;
JSON
{
  "hex": "#b040e3",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 281.227,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.59982,
    "c": 0.24023,
    "h": 312.9
  },
  "luminance": 0.18443
}

Semantic roles & 50–950 ramp

primary
#B040E3
secondary
#B3E19E
accent
#F13771
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B040E3

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

Preview Lab → · Contrast checker → · Palette generator →

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