#B42FA2#B42FA2

#B42FA2 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.1% C 0.208 H 334.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#B42FA2
RGBrgb(180, 47, 162)
HSLhsl(308, 59%, 45%)
HSVhsv(308, 74%, 71%)
CMYKcmyk(0%, 73.9%, 10%, 29.4%)
CIE-LABlab(44.73, 64.31, -33.02)
CIE-LCHlch(44.73, 72.30, 332.82°)
OKLaboklab(55.1% 0.1868 -0.0904)
OKLCHoklch(55.1% 0.208 334.2)
XYZxyz(26.3607, 14.3473, 35.5564)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FA2 #2FB441
analogous
#832FB4 #B42FA2 #B42F60
triadic
#B42FA2 #A2B42F #2FA2B4
tetradic
#B42FA2 #B4832F #2FB441 #2F60B4
square
#B42FA2 #B4832F #2FB441 #2F60B4
split-complementary
#B42FA2 #60B42F #2FB483
monochromatic
#53164B #832276 #B42FA2 #D14FBF #DE80D1

Accessibility & contrast

On white

5.43
#B42FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#B42FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FA2
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FA2#FFFFFF#000000##FFFFFF
##B42FA21.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5DA5
Deuteranopia (green-blind)
#5D719F
Tritanopia (blue-blind)
#BD3B66
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42fa2;
/* rgb */ color: rgb(180, 47, 162);
/* oklch */ color: oklch(55.1% 0.208 334.2);
Tailwind
colors: {
  custom: {
    50: '#ce75be',
    500: '#b42fa2',
    950: '#000000',
  },
}
SCSS
$custom: #b42fa2;
$custom-light: #ce75be;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fa2",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 308.12,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55096,
    "c": 0.20753,
    "h": 334.2
  },
  "luminance": 0.14345
}

Semantic roles & 50–950 ramp

primary
#B42FA2
secondary
#78C783
accent
#E25B46
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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