#B42FAF#B42FAF

#B42FAF is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.217 H 329.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#B42FAF
RGBrgb(180, 47, 175)
HSLhsl(302, 59%, 45%)
HSVhsv(302, 74%, 71%)
CMYKcmyk(0%, 73.9%, 2.8%, 29.4%)
CIE-LABlab(45.41, 66.33, -39.67)
CIE-LCHlch(45.41, 77.29, 329.12°)
OKLaboklab(55.8% 0.1873 -0.1096)
OKLCHoklch(55.8% 0.217 329.7)
XYZxyz(27.5766, 14.8336, 41.9599)
Luminance0.1483 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FAF #2FB434
analogous
#772FB4 #B42FAF #B42F6C
triadic
#B42FAF #AFB42F #2FAFB4
tetradic
#B42FAF #B4772F #2FB434 #2F6CB4
square
#B42FAF #B4772F #2FB434 #2F6CB4
split-complementary
#B42FAF #6CB42F #2FB477
monochromatic
#531651 #832280 #B42FAF #D14FCC #DE80DA

Accessibility & contrast

On white

5.29
#B42FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B42FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FAF
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FAF#FFFFFF#000000##FFFFFF
##B42FAF1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C60B2
Deuteranopia (green-blind)
#5772AC
Tritanopia (blue-blind)
#BB426D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42faf;
/* rgb */ color: rgb(180, 47, 175);
/* oklch */ color: oklch(55.8% 0.217 329.7);
Tailwind
colors: {
  custom: {
    50: '#ce76c7',
    500: '#b42faf',
    950: '#000000',
  },
}
SCSS
$custom: #b42faf;
$custom-light: #ce76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b42faf",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 302.256,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55803,
    "c": 0.21704,
    "h": 329.7
  },
  "luminance": 0.14831
}

Semantic roles & 50–950 ramp

primary
#B42FAF
secondary
#78C77B
accent
#E24C46
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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