#B42FB0#B42FB0

#B42FB0 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.9% C 0.218 H 329.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B42FB0
RGBrgb(180, 47, 176)
HSLhsl(302, 59%, 45%)
HSVhsv(302, 74%, 71%)
CMYKcmyk(0%, 73.9%, 2.2%, 29.4%)
CIE-LABlab(45.46, 66.49, -40.17)
CIE-LCHlch(45.46, 77.68, 328.86°)
OKLaboklab(55.86% 0.1873 -0.1111)
OKLCHoklch(55.86% 0.218 329.3)
XYZxyz(27.6752, 14.8730, 42.4790)
Luminance0.1487 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FB0 #2FB433
analogous
#762FB4 #B42FB0 #B42F6D
triadic
#B42FB0 #B0B42F #2FB0B4
tetradic
#B42FB0 #B4762F #2FB433 #2F6DB4
square
#B42FB0 #B4762F #2FB433 #2F6DB4
split-complementary
#B42FB0 #6DB42F #2FB476
monochromatic
#531651 #832281 #B42FB0 #D14FCD #DE80DB

Accessibility & contrast

On white

5.28
#B42FB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42FB0
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FB0#FFFFFF#000000##FFFFFF
##B42FB01.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A60B3
Deuteranopia (green-blind)
#5672AD
Tritanopia (blue-blind)
#BA426D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42fb0;
/* rgb */ color: rgb(180, 47, 176);
/* oklch */ color: oklch(55.9% 0.218 329.3);
Tailwind
colors: {
  custom: {
    50: '#ce76c8',
    500: '#b42fb0',
    950: '#000000',
  },
}
SCSS
$custom: #b42fb0;
$custom-light: #ce76c8;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fb0",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 176
  },
  "hsl": {
    "h": 301.805,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55859,
    "c": 0.2178,
    "h": 329.3
  },
  "luminance": 0.14871
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B42FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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