#B42EB6#B42EB6

#B42EB6 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.1% C 0.223 H 327.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#B42EB6
RGBrgb(180, 46, 182)
HSLhsl(299, 60%, 45%)
HSVhsv(299, 75%, 71%)
CMYKcmyk(1.1%, 74.7%, 0%, 28.6%)
CIE-LABlab(45.68, 67.77, -43.35)
CIE-LCHlch(45.68, 80.45, 327.39°)
OKLaboklab(56.13% 0.1882 -0.1203)
OKLCHoklch(56.13% 0.223 327.4)
XYZxyz(28.2425, 15.0367, 45.6617)
Luminance0.1504 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42EB6 #30B62E
analogous
#702EB6 #B42EB6 #B62E74
triadic
#B42EB6 #B6B42E #2EB6B4
tetradic
#B42EB6 #B6702E #30B62E #2E74B6
square
#B42EB6 #B6702E #30B62E #2E74B6
split-complementary
#B42EB6 #74B62E #2EB670
monochromatic
#531554 #842285 #B42EB6 #D14FD2 #DD80DF

Accessibility & contrast

On white

5.24
#B42EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B42EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42EB6
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42EB6#FFFFFF#000000##FFFFFF
##B42EB61.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0861BA
Deuteranopia (green-blind)
#5272B3
Tritanopia (blue-blind)
#B94570
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42eb6;
/* rgb */ color: rgb(180, 46, 182);
/* oklch */ color: oklch(56.1% 0.223 327.4);
Tailwind
colors: {
  custom: {
    50: '#ce75cc',
    500: '#b42eb6',
    950: '#000000',
  },
}
SCSS
$custom: #b42eb6;
$custom-light: #ce75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b42eb6",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 299.118,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56127,
    "c": 0.22333,
    "h": 327.4
  },
  "luminance": 0.15035
}

Semantic roles & 50–950 ramp

primary
#B42EB6
secondary
#79C878
accent
#E34547
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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