#B42FB2#B42FB2

#B42FB2 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.219 H 328.7°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#B42FB2
RGBrgb(180, 47, 178)
HSLhsl(301, 59%, 45%)
HSVhsv(301, 74%, 71%)
CMYKcmyk(0%, 73.9%, 1.1%, 29.4%)
CIE-LABlab(45.57, 66.81, -41.18)
CIE-LCHlch(45.57, 78.48, 328.35°)
OKLaboklab(55.97% 0.1873 -0.114)
OKLCHoklch(55.97% 0.219 328.7)
XYZxyz(27.8745, 14.9528, 43.5289)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FB2 #2FB431
analogous
#732FB4 #B42FB2 #B42F70
triadic
#B42FB2 #B2B42F #2FB2B4
tetradic
#B42FB2 #B4732F #2FB431 #2F70B4
square
#B42FB2 #B4732F #2FB431 #2F70B4
split-complementary
#B42FB2 #70B42F #2FB473
monochromatic
#531652 #832282 #B42FB2 #D14FCF #DE80DC

Accessibility & contrast

On white

5.26
#B42FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B42FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FB2
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FB2#FFFFFF#000000##FFFFFF
##B42FB21.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1661B6
Deuteranopia (green-blind)
#5572AF
Tritanopia (blue-blind)
#BA436E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42fb2;
/* rgb */ color: rgb(180, 47, 178);
/* oklch */ color: oklch(56.0% 0.219 328.7);
Tailwind
colors: {
  custom: {
    50: '#ce76c9',
    500: '#b42fb2',
    950: '#000000',
  },
}
SCSS
$custom: #b42fb2;
$custom-light: #ce76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fb2",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 300.902,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55973,
    "c": 0.21929,
    "h": 328.7
  },
  "luminance": 0.14951
}

Semantic roles & 50–950 ramp

primary
#B42FB2
secondary
#78C779
accent
#E24846
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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