#B42FAB#B42FAB

#B42FAB is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.6% C 0.214 H 331.0°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#B42FAB
RGBrgb(180, 47, 171)
HSLhsl(304, 59%, 45%)
HSVhsv(304, 74%, 71%)
CMYKcmyk(0%, 73.9%, 5%, 29.4%)
CIE-LABlab(45.19, 65.70, -37.64)
CIE-LCHlch(45.19, 75.72, 330.19°)
OKLaboklab(55.58% 0.1873 -0.1037)
OKLCHoklch(55.58% 0.214 331)
XYZxyz(27.1896, 14.6788, 39.9214)
Luminance0.1468 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FAB #2FB438
analogous
#7B2FB4 #B42FAB #B42F69
triadic
#B42FAB #ABB42F #2FABB4
tetradic
#B42FAB #B47B2F #2FB438 #2F69B4
square
#B42FAB #B47B2F #2FB438 #2F69B4
split-complementary
#B42FAB #69B42F #2FB47B
monochromatic
#53164F #83227D #B42FAB #D14FC8 #DE80D7

Accessibility & contrast

On white

5.34
#B42FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B42FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FAB
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FAB#FFFFFF#000000##FFFFFF
##B42FAB1.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225FAE
Deuteranopia (green-blind)
#5971A8
Tritanopia (blue-blind)
#BB406A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42fab;
/* rgb */ color: rgb(180, 47, 171);
/* oklch */ color: oklch(55.6% 0.214 331.0);
Tailwind
colors: {
  custom: {
    50: '#ce75c4',
    500: '#b42fab',
    950: '#000000',
  },
}
SCSS
$custom: #b42fab;
$custom-light: #ce75c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fab",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 304.06,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5558,
    "c": 0.21407,
    "h": 331
  },
  "luminance": 0.14677
}

Semantic roles & 50–950 ramp

primary
#B42FAB
secondary
#78C77D
accent
#E25146
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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