#B42BA5#B42BA5

#B42BA5 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.9% C 0.214 H 333.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#B42BA5
RGBrgb(180, 43, 165)
HSLhsl(307, 61%, 44%)
HSVhsv(307, 76%, 71%)
CMYKcmyk(0%, 76.1%, 8.3%, 29.4%)
CIE-LABlab(44.45, 66.00, -35.25)
CIE-LCHlch(44.45, 74.83, 331.89°)
OKLaboklab(54.95% 0.1906 -0.0968)
OKLCHoklch(54.95% 0.214 333.1)
XYZxyz(26.4780, 14.1499, 36.9267)
Luminance0.1415 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42BA5 #2BB43A
analogous
#7E2BB4 #B42BA5 #B42B60
triadic
#B42BA5 #A5B42B #2BA5B4
tetradic
#B42BA5 #B47E2B #2BB43A #2B60B4
square
#B42BA5 #B47E2B #2BB43A #2B60B4
split-complementary
#B42BA5 #60B42B #2BB47E
monochromatic
#51134A #831F78 #B42BA5 #D349C4 #DF7AD4

Accessibility & contrast

On white

5.48
#B42BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#B42BA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42BA5
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42BA5#FFFFFF#000000##FFFFFF
##B42BA51.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245DA8
Deuteranopia (green-blind)
#5A70A2
Tritanopia (blue-blind)
#BC3A66
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42ba5;
/* rgb */ color: rgb(180, 43, 165);
/* oklch */ color: oklch(54.9% 0.214 333.1);
Tailwind
colors: {
  custom: {
    50: '#ce74c0',
    500: '#b42ba5',
    950: '#000000',
  },
}
SCSS
$custom: #b42ba5;
$custom-light: #ce74c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ba5",
  "rgb": {
    "r": 180,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 306.569,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54945,
    "c": 0.21378,
    "h": 333.1
  },
  "luminance": 0.14148
}

Semantic roles & 50–950 ramp

primary
#B42BA5
secondary
#73C77D
accent
#E55543
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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