#B42FB3#B42FB3

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

Color values

HEX#B42FB3
RGBrgb(180, 47, 179)
HSLhsl(300, 59%, 45%)
HSVhsv(300, 74%, 71%)
CMYKcmyk(0%, 73.9%, 0.6%, 29.4%)
CIE-LABlab(45.62, 66.97, -41.68)
CIE-LCHlch(45.62, 78.88, 328.10°)
OKLaboklab(56.03% 0.1873 -0.1154)
OKLCHoklch(56.03% 0.22 328.4)
XYZxyz(27.9753, 14.9931, 44.0596)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FB3 #2FB430
analogous
#732FB4 #B42FB3 #B42F71
triadic
#B42FB3 #B3B42F #2FB3B4
tetradic
#B42FB3 #B4732F #2FB430 #2F71B4
square
#B42FB3 #B4732F #2FB430 #2F71B4
split-complementary
#B42FB3 #71B42F #2FB473
monochromatic
#531652 #832283 #B42FB3 #D14FD0 #DE80DD

Accessibility & contrast

On white

5.25
#B42FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#B42FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FB3
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FB3#FFFFFF#000000##FFFFFF
##B42FB31.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1461B7
Deuteranopia (green-blind)
#5472B0
Tritanopia (blue-blind)
#BA446F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42fb3;
/* rgb */ color: rgb(180, 47, 179);
/* oklch */ color: oklch(56.0% 0.220 328.4);
Tailwind
colors: {
  custom: {
    50: '#ce76ca',
    500: '#b42fb3',
    950: '#000000',
  },
}
SCSS
$custom: #b42fb3;
$custom-light: #ce76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fb3",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 300.451,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56031,
    "c": 0.22006,
    "h": 328.4
  },
  "luminance": 0.14991
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B42FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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