#B42BAE#B42BAE

#B42BAE is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.220 H 330.0°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#B42BAE
RGBrgb(180, 43, 174)
HSLhsl(303, 61%, 44%)
HSVhsv(303, 76%, 71%)
CMYKcmyk(0%, 76.1%, 3.3%, 29.4%)
CIE-LABlab(44.93, 67.39, -39.84)
CIE-LCHlch(44.93, 78.28, 329.41°)
OKLaboklab(55.44% 0.1908 -0.1101)
OKLCHoklch(55.44% 0.22 330)
XYZxyz(27.3261, 14.4892, 41.3937)
Luminance0.1449 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42BAE #2BB431
analogous
#752BB4 #B42BAE #B42B69
triadic
#B42BAE #AEB42B #2BAEB4
tetradic
#B42BAE #B4752B #2BB431 #2B69B4
square
#B42BAE #B4752B #2BB431 #2B69B4
split-complementary
#B42BAE #69B42B #2BB475
monochromatic
#51134E #831F7E #B42BAE #D349CD #DF7ADB

Accessibility & contrast

On white

5.39
#B42BAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#B42BAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42BAE
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42BAE#FFFFFF#000000##FFFFFF
##B42BAE1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165FB1
Deuteranopia (green-blind)
#5671AB
Tritanopia (blue-blind)
#BB3F6B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42bae;
/* rgb */ color: rgb(180, 43, 174);
/* oklch */ color: oklch(55.4% 0.220 330.0);
Tailwind
colors: {
  custom: {
    50: '#ce74c6',
    500: '#b42bae',
    950: '#000000',
  },
}
SCSS
$custom: #b42bae;
$custom-light: #ce74c6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42bae",
  "rgb": {
    "r": 180,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 302.628,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55443,
    "c": 0.22028,
    "h": 330
  },
  "luminance": 0.14487
}

Semantic roles & 50–950 ramp

primary
#B42BAE
secondary
#73C777
accent
#E54A43
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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