#B42FB4#B42FB4

#B42FB4 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.1% C 0.221 H 328.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#B42FB4
RGBrgb(180, 47, 180)
HSLhsl(300, 59%, 45%)
HSVhsv(300, 74%, 71%)
CMYKcmyk(0%, 73.9%, 0%, 29.4%)
CIE-LABlab(45.68, 67.13, -42.18)
CIE-LCHlch(45.68, 79.28, 327.86°)
OKLaboklab(56.09% 0.1873 -0.1169)
OKLCHoklch(56.09% 0.221 328)
XYZxyz(28.0768, 15.0337, 44.5942)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FB4 #2FB42F
analogous
#722FB4 #B42FB4 #B42F72
triadic
#B42FB4 #B4B42F #2FB4B4
tetradic
#B42FB4 #B4722F #2FB42F #2F72B4
square
#B42FB4 #B4722F #2FB42F #2F72B4
split-complementary
#B42FB4 #72B42F #2FB472
monochromatic
#531653 #832283 #B42FB4 #D14FD1 #DE80DE

Accessibility & contrast

On white

5.24
#B42FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B42FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FB4
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FB4#FFFFFF#000000##FFFFFF
##B42FB41.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1261B8
Deuteranopia (green-blind)
#5472B1
Tritanopia (blue-blind)
#BA4470
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42fb4;
/* rgb */ color: rgb(180, 47, 180);
/* oklch */ color: oklch(56.1% 0.221 328.0);
Tailwind
colors: {
  custom: {
    50: '#ce76cb',
    500: '#b42fb4',
    950: '#000000',
  },
}
SCSS
$custom: #b42fb4;
$custom-light: #ce76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fb4",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 300,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56088,
    "c": 0.22081,
    "h": 328
  },
  "luminance": 0.15032
}

Semantic roles & 50–950 ramp

primary
#B42FB4
secondary
#78C778
accent
#E24646
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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