#B42FA8#B42FA8

#B42FA8 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.4% C 0.212 H 332.0°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#B42FA8
RGBrgb(180, 47, 168)
HSLhsl(305, 59%, 45%)
HSVhsv(305, 74%, 71%)
CMYKcmyk(0%, 73.9%, 6.7%, 29.4%)
CIE-LABlab(45.03, 65.23, -36.11)
CIE-LCHlch(45.03, 74.56, 331.03°)
OKLaboklab(55.42% 0.1871 -0.0993)
OKLCHoklch(55.42% 0.212 332)
XYZxyz(26.9068, 14.5657, 38.4325)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FA8 #2FB43B
analogous
#7E2FB4 #B42FA8 #B42F65
triadic
#B42FA8 #A8B42F #2FA8B4
tetradic
#B42FA8 #B47E2F #2FB43B #2F65B4
square
#B42FA8 #B47E2F #2FB43B #2F65B4
split-complementary
#B42FA8 #65B42F #2FB47E
monochromatic
#53164D #83227B #B42FA8 #D14FC5 #DE80D5

Accessibility & contrast

On white

5.37
#B42FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#B42FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FA8
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FA8#FFFFFF#000000##FFFFFF
##B42FA81.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265FAB
Deuteranopia (green-blind)
#5A71A5
Tritanopia (blue-blind)
#BC3E69
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42fa8;
/* rgb */ color: rgb(180, 47, 168);
/* oklch */ color: oklch(55.4% 0.212 332.0);
Tailwind
colors: {
  custom: {
    50: '#ce75c2',
    500: '#b42fa8',
    950: '#000000',
  },
}
SCSS
$custom: #b42fa8;
$custom-light: #ce75c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fa8",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 305.414,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55416,
    "c": 0.21186,
    "h": 332
  },
  "luminance": 0.14563
}

Semantic roles & 50–950 ramp

primary
#B42FA8
secondary
#78C77F
accent
#E25446
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B42FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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