#B42FB1#B42FB1

#B42FB1 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.9% C 0.219 H 329.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B42FB1
RGBrgb(180, 47, 177)
HSLhsl(301, 59%, 45%)
HSVhsv(301, 74%, 71%)
CMYKcmyk(0%, 73.9%, 1.7%, 29.4%)
CIE-LABlab(45.51, 66.65, -40.68)
CIE-LCHlch(45.51, 78.08, 328.60°)
OKLaboklab(55.92% 0.1873 -0.1125)
OKLCHoklch(55.92% 0.219 329)
XYZxyz(27.7745, 14.9127, 43.0020)
Luminance0.1491 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FB1 #2FB432
analogous
#742FB4 #B42FB1 #B42F6F
triadic
#B42FB1 #B1B42F #2FB1B4
tetradic
#B42FB1 #B4742F #2FB432 #2F6FB4
square
#B42FB1 #B4742F #2FB432 #2F6FB4
split-complementary
#B42FB1 #6FB42F #2FB474
monochromatic
#531652 #832281 #B42FB1 #D14FCE #DE80DC

Accessibility & contrast

On white

5.27
#B42FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B42FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FB1
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FB1#FFFFFF#000000##FFFFFF
##B42FB11.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1860B5
Deuteranopia (green-blind)
#5572AE
Tritanopia (blue-blind)
#BA436E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42fb1;
/* rgb */ color: rgb(180, 47, 177);
/* oklch */ color: oklch(55.9% 0.219 329.0);
Tailwind
colors: {
  custom: {
    50: '#ce76c9',
    500: '#b42fb1',
    950: '#000000',
  },
}
SCSS
$custom: #b42fb1;
$custom-light: #ce76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fb1",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 301.353,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55916,
    "c": 0.21854,
    "h": 329
  },
  "luminance": 0.14911
}

Semantic roles & 50–950 ramp

primary
#B42FB1
secondary
#78C77A
accent
#E24A46
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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