#B42FA7#B42FA7

#B42FA7 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.211 H 332.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B42FA7
RGBrgb(180, 47, 167)
HSLhsl(306, 59%, 45%)
HSVhsv(306, 74%, 71%)
CMYKcmyk(0%, 73.9%, 7.2%, 29.4%)
CIE-LABlab(44.98, 65.08, -35.60)
CIE-LCHlch(44.98, 74.18, 331.32°)
OKLaboklab(55.36% 0.1871 -0.0978)
OKLCHoklch(55.36% 0.211 332.4)
XYZxyz(26.8140, 14.5286, 37.9438)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FA7 #2FB43C
analogous
#7F2FB4 #B42FA7 #B42F64
triadic
#B42FA7 #A7B42F #2FA7B4
tetradic
#B42FA7 #B47F2F #2FB43C #2F64B4
square
#B42FA7 #B47F2F #2FB43C #2F64B4
split-complementary
#B42FA7 #64B42F #2FB47F
monochromatic
#53164D #83227A #B42FA7 #D14FC4 #DE80D5

Accessibility & contrast

On white

5.38
#B42FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42FA7
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FA7#FFFFFF#000000##FFFFFF
##B42FA71.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275EAA
Deuteranopia (green-blind)
#5B71A4
Tritanopia (blue-blind)
#BC3E68
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42fa7;
/* rgb */ color: rgb(180, 47, 167);
/* oklch */ color: oklch(55.4% 0.211 332.4);
Tailwind
colors: {
  custom: {
    50: '#ce75c1',
    500: '#b42fa7',
    950: '#000000',
  },
}
SCSS
$custom: #b42fa7;
$custom-light: #ce75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fa7",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 305.865,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55362,
    "c": 0.21113,
    "h": 332.4
  },
  "luminance": 0.14526
}

Semantic roles & 50–950 ramp

primary
#B42FA7
secondary
#78C780
accent
#E25546
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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