#B42FAC#B42FAC

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

Color values

HEX#B42FAC
RGBrgb(180, 47, 172)
HSLhsl(304, 59%, 45%)
HSVhsv(304, 74%, 71%)
CMYKcmyk(0%, 73.9%, 4.4%, 29.4%)
CIE-LABlab(45.24, 65.85, -38.15)
CIE-LCHlch(45.24, 76.11, 329.91°)
OKLaboklab(55.64% 0.1873 -0.1052)
OKLCHoklch(55.64% 0.215 330.7)
XYZxyz(27.2852, 14.7170, 40.4253)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FAC #2FB437
analogous
#7A2FB4 #B42FAC #B42F6A
triadic
#B42FAC #ACB42F #2FACB4
tetradic
#B42FAC #B47A2F #2FB437 #2F6AB4
square
#B42FAC #B47A2F #2FB437 #2F6AB4
split-complementary
#B42FAC #6AB42F #2FB47A
monochromatic
#53164F #83227E #B42FAC #D14FC9 #DE80D8

Accessibility & contrast

On white

5.33
#B42FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42FAC
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FAC#FFFFFF#000000##FFFFFF
##B42FAC1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215FAF
Deuteranopia (green-blind)
#5871A9
Tritanopia (blue-blind)
#BB406B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42fac;
/* rgb */ color: rgb(180, 47, 172);
/* oklch */ color: oklch(55.6% 0.215 330.7);
Tailwind
colors: {
  custom: {
    50: '#ce75c5',
    500: '#b42fac',
    950: '#000000',
  },
}
SCSS
$custom: #b42fac;
$custom-light: #ce75c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fac",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 303.609,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55635,
    "c": 0.21481,
    "h": 330.7
  },
  "luminance": 0.14715
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B42FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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