#B42FA5#B42FA5

#B42FA5 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.3% C 0.210 H 333.1°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#B42FA5
RGBrgb(180, 47, 165)
HSLhsl(307, 59%, 45%)
HSVhsv(307, 74%, 71%)
CMYKcmyk(0%, 73.9%, 8.3%, 29.4%)
CIE-LABlab(44.88, 64.77, -34.57)
CIE-LCHlch(44.88, 73.42, 331.91°)
OKLaboklab(55.26% 0.187 -0.0949)
OKLCHoklch(55.26% 0.21 333.1)
XYZxyz(26.6306, 14.4552, 36.9776)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FA5 #2FB43E
analogous
#812FB4 #B42FA5 #B42F63
triadic
#B42FA5 #A5B42F #2FA5B4
tetradic
#B42FA5 #B4812F #2FB43E #2F63B4
square
#B42FA5 #B4812F #2FB43E #2F63B4
split-complementary
#B42FA5 #63B42F #2FB481
monochromatic
#53164C #832279 #B42FA5 #D14FC2 #DE80D3

Accessibility & contrast

On white

5.40
#B42FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#B42FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FA5
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FA5#FFFFFF#000000##FFFFFF
##B42FA51.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295EA8
Deuteranopia (green-blind)
#5C71A2
Tritanopia (blue-blind)
#BC3D67
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42fa5;
/* rgb */ color: rgb(180, 47, 165);
/* oklch */ color: oklch(55.3% 0.210 333.1);
Tailwind
colors: {
  custom: {
    50: '#ce75c0',
    500: '#b42fa5',
    950: '#000000',
  },
}
SCSS
$custom: #b42fa5;
$custom-light: #ce75c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fa5",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 306.767,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55255,
    "c": 0.20968,
    "h": 333.1
  },
  "luminance": 0.14453
}

Semantic roles & 50–950 ramp

primary
#B42FA5
secondary
#78C781
accent
#E25846
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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