#B42FA9#B42FA9

#B42FA9 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.213 H 331.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B42FA9
RGBrgb(180, 47, 169)
HSLhsl(305, 59%, 45%)
HSVhsv(305, 74%, 71%)
CMYKcmyk(0%, 73.9%, 6.1%, 29.4%)
CIE-LABlab(45.09, 65.39, -36.62)
CIE-LCHlch(45.09, 74.94, 330.75°)
OKLaboklab(55.47% 0.1872 -0.1008)
OKLCHoklch(55.47% 0.213 331.7)
XYZxyz(27.0004, 14.6031, 38.9250)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FA9 #2FB43A
analogous
#7C2FB4 #B42FA9 #B42F67
triadic
#B42FA9 #A9B42F #2FA9B4
tetradic
#B42FA9 #B47C2F #2FB43A #2F67B4
square
#B42FA9 #B47C2F #2FB43A #2F67B4
split-complementary
#B42FA9 #67B42F #2FB47C
monochromatic
#53164E #83227B #B42FA9 #D14FC6 #DE80D6

Accessibility & contrast

On white

5.36
#B42FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#B42FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FA9
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FA9#FFFFFF#000000##FFFFFF
##B42FA91.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255FAC
Deuteranopia (green-blind)
#5A71A6
Tritanopia (blue-blind)
#BC3F69
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42fa9;
/* rgb */ color: rgb(180, 47, 169);
/* oklch */ color: oklch(55.5% 0.213 331.7);
Tailwind
colors: {
  custom: {
    50: '#ce75c3',
    500: '#b42fa9',
    950: '#000000',
  },
}
SCSS
$custom: #b42fa9;
$custom-light: #ce75c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fa9",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 304.962,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5547,
    "c": 0.2126,
    "h": 331.7
  },
  "luminance": 0.14601
}

Semantic roles & 50–950 ramp

primary
#B42FA9
secondary
#78C77F
accent
#E25346
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B42FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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