#B42FA6#B42FA6

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

Color values

HEX#B42FA6
RGBrgb(180, 47, 166)
HSLhsl(306, 59%, 45%)
HSVhsv(306, 74%, 71%)
CMYKcmyk(0%, 73.9%, 7.8%, 29.4%)
CIE-LABlab(44.93, 64.92, -35.09)
CIE-LCHlch(44.93, 73.80, 331.61°)
OKLaboklab(55.31% 0.187 -0.0964)
OKLCHoklch(55.31% 0.21 332.7)
XYZxyz(26.7220, 14.4917, 37.4588)
Luminance0.1449 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FA6 #2FB43D
analogous
#802FB4 #B42FA6 #B42F64
triadic
#B42FA6 #A6B42F #2FA6B4
tetradic
#B42FA6 #B4802F #2FB43D #2F64B4
square
#B42FA6 #B4802F #2FB43D #2F64B4
split-complementary
#B42FA6 #64B42F #2FB480
monochromatic
#53164C #832279 #B42FA6 #D14FC3 #DE80D4

Accessibility & contrast

On white

5.39
#B42FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#B42FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FA6
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FA6#FFFFFF#000000##FFFFFF
##B42FA61.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285EA9
Deuteranopia (green-blind)
#5B71A3
Tritanopia (blue-blind)
#BC3D68
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42fa6;
/* rgb */ color: rgb(180, 47, 166);
/* oklch */ color: oklch(55.3% 0.210 332.7);
Tailwind
colors: {
  custom: {
    50: '#ce75c1',
    500: '#b42fa6',
    950: '#000000',
  },
}
SCSS
$custom: #b42fa6;
$custom-light: #ce75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fa6",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 306.316,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55308,
    "c": 0.2104,
    "h": 332.7
  },
  "luminance": 0.1449
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B42FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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