#B42BA2#B42BA2

#B42BA2 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.8% C 0.212 H 334.1°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#B42BA2
RGBrgb(180, 43, 162)
HSLhsl(308, 61%, 44%)
HSVhsv(308, 76%, 71%)
CMYKcmyk(0%, 76.1%, 10%, 29.4%)
CIE-LABlab(44.29, 65.55, -33.71)
CIE-LCHlch(44.29, 73.71, 332.79°)
OKLaboklab(54.78% 0.1905 -0.0924)
OKLCHoklch(54.78% 0.212 334.1)
XYZxyz(26.2081, 14.0420, 35.5055)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42BA2 #2BB43D
analogous
#812BB4 #B42BA2 #B42B5D
triadic
#B42BA2 #A2B42B #2BA2B4
tetradic
#B42BA2 #B4812B #2BB43D #2B5DB4
square
#B42BA2 #B4812B #2BB43D #2B5DB4
split-complementary
#B42BA2 #5DB42B #2BB481
monochromatic
#511349 #831F76 #B42BA2 #D349C1 #DF7AD2

Accessibility & contrast

On white

5.51
#B42BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#B42BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42BA2
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42BA2#FFFFFF#000000##FFFFFF
##B42BA21.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285CA5
Deuteranopia (green-blind)
#5C709F
Tritanopia (blue-blind)
#BD3864
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42ba2;
/* rgb */ color: rgb(180, 43, 162);
/* oklch */ color: oklch(54.8% 0.212 334.1);
Tailwind
colors: {
  custom: {
    50: '#ce73be',
    500: '#b42ba2',
    950: '#000000',
  },
}
SCSS
$custom: #b42ba2;
$custom-light: #ce73be;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ba2",
  "rgb": {
    "r": 180,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 307.883,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54784,
    "c": 0.21166,
    "h": 334.1
  },
  "luminance": 0.1404
}

Semantic roles & 50–950 ramp

primary
#B42BA2
secondary
#73C77E
accent
#E55843
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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