#B42FB5#B42FB5

#B42FB5 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.1% C 0.222 H 327.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B42FB5
RGBrgb(180, 47, 181)
HSLhsl(300, 59%, 45%)
HSVhsv(300, 74%, 71%)
CMYKcmyk(0.6%, 74%, 0%, 29%)
CIE-LABlab(45.74, 67.30, -42.68)
CIE-LCHlch(45.74, 79.69, 327.62°)
OKLaboklab(56.15% 0.1873 -0.1183)
OKLCHoklch(56.15% 0.222 327.7)
XYZxyz(28.1790, 15.0746, 45.1326)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FB5 #30B52F
analogous
#712FB5 #B42FB5 #B52F73
triadic
#B42FB5 #B5B42F #2FB5B4
tetradic
#B42FB5 #B5712F #30B52F #2F73B5
square
#B42FB5 #B5712F #30B52F #2F73B5
split-complementary
#B42FB5 #73B52F #2FB571
monochromatic
#531654 #842284 #B42FB5 #D150D1 #DD80DE

Accessibility & contrast

On white

5.23
#B42FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B42FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FB5
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FB5#FFFFFF#000000##FFFFFF
##B42FB51.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F61B9
Deuteranopia (green-blind)
#5372B2
Tritanopia (blue-blind)
#BA4570
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42fb5;
/* rgb */ color: rgb(180, 47, 181);
/* oklch */ color: oklch(56.1% 0.222 327.7);
Tailwind
colors: {
  custom: {
    50: '#ce76cc',
    500: '#b42fb5',
    950: '#000000',
  },
}
SCSS
$custom: #b42fb5;
$custom-light: #ce76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fb5",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 299.552,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56146,
    "c": 0.22158,
    "h": 327.7
  },
  "luminance": 0.15073
}

Semantic roles & 50–950 ramp

primary
#B42FB5
secondary
#79C779
accent
#E24647
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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