#B42EB5#B42EB5

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

Color values

HEX#B42EB5
RGBrgb(180, 46, 181)
HSLhsl(300, 59%, 45%)
HSVhsv(300, 75%, 71%)
CMYKcmyk(0.6%, 74.6%, 0%, 29%)
CIE-LABlab(45.63, 67.61, -42.85)
CIE-LCHlch(45.63, 80.04, 327.63°)
OKLaboklab(56.07% 0.1882 -0.1188)
OKLCHoklch(56.07% 0.223 327.7)
XYZxyz(28.1395, 14.9955, 45.1194)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42EB5 #2FB52E
analogous
#712EB5 #B42EB5 #B52E72
triadic
#B42EB5 #B5B42E #2EB5B4
tetradic
#B42EB5 #B5712E #2FB52E #2E72B5
square
#B42EB5 #B5712E #2FB52E #2E72B5
split-complementary
#B42EB5 #72B52E #2EB571
monochromatic
#531553 #832284 #B42EB5 #D14ED2 #DE7FDE

Accessibility & contrast

On white

5.25
#B42EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#B42EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42EB5
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42EB5#FFFFFF#000000##FFFFFF
##B42EB51.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C61B9
Deuteranopia (green-blind)
#5372B2
Tritanopia (blue-blind)
#BA4470
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42eb5;
/* rgb */ color: rgb(180, 46, 181);
/* oklch */ color: oklch(56.1% 0.223 327.7);
Tailwind
colors: {
  custom: {
    50: '#ce75cc',
    500: '#b42eb5',
    950: '#000000',
  },
}
SCSS
$custom: #b42eb5;
$custom-light: #ce75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b42eb5",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 299.556,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56069,
    "c": 0.22257,
    "h": 327.7
  },
  "luminance": 0.14993
}

Semantic roles & 50–950 ramp

primary
#B42EB5
secondary
#78C778
accent
#E34546
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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