#B42EB7#B42EB7

#B42EB7 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.224 H 327.1°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B42EB7
RGBrgb(180, 46, 183)
HSLhsl(299, 60%, 45%)
HSVhsv(299, 75%, 72%)
CMYKcmyk(1.6%, 74.9%, 0%, 28.2%)
CIE-LABlab(45.74, 67.93, -43.85)
CIE-LCHlch(45.74, 80.85, 327.16°)
OKLaboklab(56.19% 0.1882 -0.1217)
OKLCHoklch(56.19% 0.224 327.1)
XYZxyz(28.3462, 15.0782, 46.2080)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42EB7 #31B72E
analogous
#6F2EB7 #B42EB7 #B72E76
triadic
#B42EB7 #B7B42E #2EB7B4
tetradic
#B42EB7 #B76F2E #31B72E #2E76B7
square
#B42EB7 #B76F2E #31B72E #2E76B7
split-complementary
#B42EB7 #76B72E #2EB76F
monochromatic
#541555 #842286 #B42EB7 #D04FD3 #DD80DF

Accessibility & contrast

On white

5.23
#B42EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B42EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42EB7
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42EB7#FFFFFF#000000##FFFFFF
##B42EB71.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0461BB
Deuteranopia (green-blind)
#5172B4
Tritanopia (blue-blind)
#B94571
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42eb7;
/* rgb */ color: rgb(180, 46, 183);
/* oklch */ color: oklch(56.2% 0.224 327.1);
Tailwind
colors: {
  custom: {
    50: '#ce75cd',
    500: '#b42eb7',
    950: '#000000',
  },
}
SCSS
$custom: #b42eb7;
$custom-light: #ce75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b42eb7",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 298.686,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56186,
    "c": 0.2241,
    "h": 327.1
  },
  "luminance": 0.15076
}

Semantic roles & 50–950 ramp

primary
#B42EB7
secondary
#7BC879
accent
#E34548
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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