#B42FB6#B42FB6

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

Color values

HEX#B42FB6
RGBrgb(180, 47, 182)
HSLhsl(299, 59%, 45%)
HSVhsv(299, 74%, 71%)
CMYKcmyk(1.1%, 74.2%, 0%, 28.6%)
CIE-LABlab(45.79, 67.46, -43.18)
CIE-LCHlch(45.79, 80.09, 327.38°)
OKLaboklab(56.2% 0.1873 -0.1198)
OKLCHoklch(56.2% 0.222 327.4)
XYZxyz(28.2820, 15.1157, 45.6749)
Luminance0.1511 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FB6 #31B62F
analogous
#702FB6 #B42FB6 #B62F75
triadic
#B42FB6 #B6B42F #2FB6B4
tetradic
#B42FB6 #B6702F #31B62F #2F75B6
square
#B42FB6 #B6702F #31B62F #2F75B6
split-complementary
#B42FB6 #75B62F #2FB670
monochromatic
#541655 #842285 #B42FB6 #D050D2 #DD81DE

Accessibility & contrast

On white

5.22
#B42FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B42FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FB6
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FB6#FFFFFF#000000##FFFFFF
##B42FB61.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C62BA
Deuteranopia (green-blind)
#5372B3
Tritanopia (blue-blind)
#B94571
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42fb6;
/* rgb */ color: rgb(180, 47, 182);
/* oklch */ color: oklch(56.2% 0.222 327.4);
Tailwind
colors: {
  custom: {
    50: '#ce76cc',
    500: '#b42fb6',
    950: '#000000',
  },
}
SCSS
$custom: #b42fb6;
$custom-light: #ce76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fb6",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 299.111,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56204,
    "c": 0.22234,
    "h": 327.4
  },
  "luminance": 0.15114
}

Semantic roles & 50–950 ramp

primary
#B42FB6
secondary
#7BC779
accent
#E24648
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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