#B42FA1#B42FA1

#B42FA1 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.0% C 0.207 H 334.5°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#B42FA1
RGBrgb(180, 47, 161)
HSLhsl(309, 59%, 45%)
HSVhsv(309, 74%, 71%)
CMYKcmyk(0%, 73.9%, 10.6%, 29.4%)
CIE-LABlab(44.68, 64.17, -32.51)
CIE-LCHlch(44.68, 71.93, 333.13°)
OKLaboklab(55.04% 0.1867 -0.0889)
OKLCHoklch(55.04% 0.207 334.5)
XYZxyz(26.2722, 14.3118, 35.0901)
Luminance0.1431 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FA1 #2FB442
analogous
#842FB4 #B42FA1 #B42F5F
triadic
#B42FA1 #A1B42F #2FA1B4
tetradic
#B42FA1 #B4842F #2FB442 #2F5FB4
square
#B42FA1 #B4842F #2FB442 #2F5FB4
split-complementary
#B42FA1 #5FB42F #2FB484
monochromatic
#53164A #832276 #B42FA1 #D14FBF #DE80D0

Accessibility & contrast

On white

5.44
#B42FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#B42FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FA1
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FA1#FFFFFF#000000##FFFFFF
##B42FA11.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5DA4
Deuteranopia (green-blind)
#5E719E
Tritanopia (blue-blind)
#BD3B65
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42fa1;
/* rgb */ color: rgb(180, 47, 161);
/* oklch */ color: oklch(55.0% 0.207 334.5);
Tailwind
colors: {
  custom: {
    50: '#ce75bd',
    500: '#b42fa1',
    950: '#000000',
  },
}
SCSS
$custom: #b42fa1;
$custom-light: #ce75bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fa1",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 308.571,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55044,
    "c": 0.20683,
    "h": 334.5
  },
  "luminance": 0.1431
}

Semantic roles & 50–950 ramp

primary
#B42FA1
secondary
#78C783
accent
#E25C46
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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