#B042E1#B042E1

#B042E1 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.0% C 0.236 H 313.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B042E1
RGBrgb(176, 66, 225)
HSLhsl(282, 73%, 57%)
HSVhsv(282, 71%, 88%)
CMYKcmyk(21.8%, 70.7%, 0%, 11.8%)
CIE-LABlab(50.17, 67.75, -60.99)
CIE-LCHlch(50.17, 91.16, 318.01°)
OKLaboklab(60.04% 0.1617 -0.1721)
OKLCHoklch(60.04% 0.236 313.2)
XYZxyz(33.4409, 18.5638, 73.0412)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042E1 #73E142
analogous
#6042E1 #B042E1 #E142C3
triadic
#B042E1 #E1B042 #42E1B0
tetradic
#B042E1 #E16042 #73E142 #42C3E1
square
#B042E1 #E16042 #73E142 #42C3E1
split-complementary
#B042E1 #C3E142 #42E160
monochromatic
#6C1792 #931FC6 #B042E1 #C677E9 #DCACF2

Accessibility & contrast

On white

4.46
#B042E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#B042E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B042E1
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042E1#FFFFFF#000000##000000
##B042E11.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E6
Deuteranopia (green-blind)
#347ADD
Tritanopia (blue-blind)
#AB648E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b042e1;
/* rgb */ color: rgb(176, 66, 225);
/* oklch */ color: oklch(60.0% 0.236 313.2);
Tailwind
colors: {
  custom: {
    50: '#cc80eb',
    500: '#b042e1',
    950: '#000000',
  },
}
SCSS
$custom: #b042e1;
$custom-light: #cc80eb;
$custom-dark: #000000;
JSON
{
  "hex": "#b042e1",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 281.509,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60042,
    "c": 0.23618,
    "h": 313.2
  },
  "luminance": 0.18563
}

Semantic roles & 50–950 ramp

primary
#B042E1
secondary
#B3E09F
accent
#EF3871
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B042E1

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

Preview Lab → · Contrast checker → · Palette generator →

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