#B42F9F#B42F9F

#B42F9F is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.205 H 335.3°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B42F9F
RGBrgb(180, 47, 159)
HSLhsl(309, 59%, 45%)
HSVhsv(309, 74%, 71%)
CMYKcmyk(0%, 73.9%, 11.7%, 29.4%)
CIE-LABlab(44.58, 63.87, -31.47)
CIE-LCHlch(44.58, 71.20, 333.77°)
OKLaboklab(54.94% 0.1866 -0.0859)
OKLCHoklch(54.94% 0.205 335.3)
XYZxyz(26.0973, 14.2419, 34.1687)
Luminance0.1424 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F9F #2FB444
analogous
#872FB4 #B42F9F #B42F5C
triadic
#B42F9F #9FB42F #2F9FB4
tetradic
#B42F9F #B4872F #2FB444 #2F5CB4
square
#B42F9F #B4872F #2FB444 #2F5CB4
split-complementary
#B42F9F #5CB42F #2FB487
monochromatic
#531649 #832274 #B42F9F #D14FBD #DE80CF

Accessibility & contrast

On white

5.46
#B42F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42F9F
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F9F#FFFFFF#000000##FFFFFF
##B42F9F1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5DA2
Deuteranopia (green-blind)
#5E709C
Tritanopia (blue-blind)
#BD3A64
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42f9f;
/* rgb */ color: rgb(180, 47, 159);
/* oklch */ color: oklch(54.9% 0.205 335.3);
Tailwind
colors: {
  custom: {
    50: '#ce75bb',
    500: '#b42f9f',
    950: '#000000',
  },
}
SCSS
$custom: #b42f9f;
$custom-light: #ce75bb;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f9f",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 309.474,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5494,
    "c": 0.20542,
    "h": 335.3
  },
  "luminance": 0.1424
}

Semantic roles & 50–950 ramp

primary
#B42F9F
secondary
#78C785
accent
#E25F46
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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