#B42FA0#B42FA0

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

Color values

HEX#B42FA0
RGBrgb(180, 47, 160)
HSLhsl(309, 59%, 45%)
HSVhsv(309, 74%, 71%)
CMYKcmyk(0%, 73.9%, 11.1%, 29.4%)
CIE-LABlab(44.63, 64.02, -31.99)
CIE-LCHlch(44.63, 71.56, 333.45°)
OKLaboklab(54.99% 0.1867 -0.0874)
OKLCHoklch(54.99% 0.206 334.9)
XYZxyz(26.1844, 14.2767, 34.6275)
Luminance0.1427 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FA0 #2FB443
analogous
#862FB4 #B42FA0 #B42F5D
triadic
#B42FA0 #A0B42F #2FA0B4
tetradic
#B42FA0 #B4862F #2FB443 #2F5DB4
square
#B42FA0 #B4862F #2FB443 #2F5DB4
split-complementary
#B42FA0 #5DB42F #2FB486
monochromatic
#53164A #832275 #B42FA0 #D14FBE #DE80D0

Accessibility & contrast

On white

5.45
#B42FA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#B42FA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FA0
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FA0#FFFFFF#000000##FFFFFF
##B42FA01.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5DA3
Deuteranopia (green-blind)
#5E719D
Tritanopia (blue-blind)
#BD3A64
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42fa0;
/* rgb */ color: rgb(180, 47, 160);
/* oklch */ color: oklch(55.0% 0.206 334.9);
Tailwind
colors: {
  custom: {
    50: '#ce75bc',
    500: '#b42fa0',
    950: '#000000',
  },
}
SCSS
$custom: #b42fa0;
$custom-light: #ce75bc;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fa0",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 309.023,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54992,
    "c": 0.20612,
    "h": 334.9
  },
  "luminance": 0.14274
}

Semantic roles & 50–950 ramp

primary
#B42FA0
secondary
#78C784
accent
#E25D46
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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