#B42F9E#B42F9E

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

Color values

HEX#B42F9E
RGBrgb(180, 47, 158)
HSLhsl(310, 59%, 45%)
HSVhsv(310, 74%, 71%)
CMYKcmyk(0%, 73.9%, 12.2%, 29.4%)
CIE-LABlab(44.53, 63.72, -30.94)
CIE-LCHlch(44.53, 70.84, 334.10°)
OKLaboklab(54.89% 0.1865 -0.0844)
OKLCHoklch(54.89% 0.205 335.6)
XYZxyz(26.0108, 14.2073, 33.7135)
Luminance0.1421 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F9E #2FB445
analogous
#882FB4 #B42F9E #B42F5C
triadic
#B42F9E #9EB42F #2F9EB4
tetradic
#B42F9E #B4882F #2FB445 #2F5CB4
square
#B42F9E #B4882F #2FB445 #2F5CB4
split-complementary
#B42F9E #5CB42F #2FB488
monochromatic
#531649 #832273 #B42F9E #D14FBC #DE80CE

Accessibility & contrast

On white

5.47
#B42F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#B42F9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42F9E
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F9E#FFFFFF#000000##FFFFFF
##B42F9E1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305DA1
Deuteranopia (green-blind)
#5F709B
Tritanopia (blue-blind)
#BD3963
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42f9e;
/* rgb */ color: rgb(180, 47, 158);
/* oklch */ color: oklch(54.9% 0.205 335.6);
Tailwind
colors: {
  custom: {
    50: '#ce75bb',
    500: '#b42f9e',
    950: '#000000',
  },
}
SCSS
$custom: #b42f9e;
$custom-light: #ce75bb;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f9e",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 309.925,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54889,
    "c": 0.20471,
    "h": 335.6
  },
  "luminance": 0.14205
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B42F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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