#B42FA4#B42FA4

#B42FA4 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.2% C 0.209 H 333.5°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#B42FA4
RGBrgb(180, 47, 164)
HSLhsl(307, 59%, 45%)
HSVhsv(307, 74%, 71%)
CMYKcmyk(0%, 73.9%, 8.9%, 29.4%)
CIE-LABlab(44.83, 64.62, -34.06)
CIE-LCHlch(44.83, 73.04, 332.21°)
OKLaboklab(55.2% 0.1869 -0.0934)
OKLCHoklch(55.2% 0.209 333.5)
XYZxyz(26.5399, 14.4189, 36.5001)
Luminance0.1442 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FA4 #2FB43F
analogous
#822FB4 #B42FA4 #B42F62
triadic
#B42FA4 #A4B42F #2FA4B4
tetradic
#B42FA4 #B4822F #2FB43F #2F62B4
square
#B42FA4 #B4822F #2FB43F #2F62B4
split-complementary
#B42FA4 #62B42F #2FB482
monochromatic
#53164C #832278 #B42FA4 #D14FC1 #DE80D2

Accessibility & contrast

On white

5.41
#B42FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#B42FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FA4
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FA4#FFFFFF#000000##FFFFFF
##B42FA41.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5EA7
Deuteranopia (green-blind)
#5C71A1
Tritanopia (blue-blind)
#BC3C67
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42fa4;
/* rgb */ color: rgb(180, 47, 164);
/* oklch */ color: oklch(55.2% 0.209 333.5);
Tailwind
colors: {
  custom: {
    50: '#ce75bf',
    500: '#b42fa4',
    950: '#000000',
  },
}
SCSS
$custom: #b42fa4;
$custom-light: #ce75bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fa4",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 307.218,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55201,
    "c": 0.20897,
    "h": 333.5
  },
  "luminance": 0.14417
}

Semantic roles & 50–950 ramp

primary
#B42FA4
secondary
#78C782
accent
#E25946
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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