#B42FB8#B42FB8

#B42FB8 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.3% C 0.224 H 326.8°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#B42FB8
RGBrgb(180, 47, 184)
HSLhsl(298, 59%, 45%)
HSVhsv(298, 74%, 72%)
CMYKcmyk(2.2%, 74.5%, 0%, 27.8%)
CIE-LABlab(45.91, 67.79, -44.17)
CIE-LCHlch(45.91, 80.91, 326.91°)
OKLaboklab(56.32% 0.1873 -0.1227)
OKLCHoklch(56.32% 0.224 326.8)
XYZxyz(28.4901, 15.1990, 46.7712)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FB8 #33B82F
analogous
#6F2FB8 #B42FB8 #B82F78
triadic
#B42FB8 #B8B42F #2FB8B4
tetradic
#B42FB8 #B86F2F #33B82F #2F78B8
square
#B42FB8 #B86F2F #33B82F #2F78B8
split-complementary
#B42FB8 #78B82F #2FB86F
monochromatic
#551657 #842387 #B42FB8 #CF52D3 #DC82DF

Accessibility & contrast

On white

5.20
#B42FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#B42FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FB8
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FB8#FFFFFF#000000##FFFFFF
##B42FB81.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0462BC
Deuteranopia (green-blind)
#5172B5
Tritanopia (blue-blind)
#B94672
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b42fb8;
/* rgb */ color: rgb(180, 47, 184);
/* oklch */ color: oklch(56.3% 0.224 326.8);
Tailwind
colors: {
  custom: {
    50: '#ce76ce',
    500: '#b42fb8',
    950: '#000000',
  },
}
SCSS
$custom: #b42fb8;
$custom-light: #ce76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fb8",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 298.248,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56322,
    "c": 0.22386,
    "h": 326.8
  },
  "luminance": 0.15197
}

Semantic roles & 50–950 ramp

primary
#B42FB8
secondary
#7DC87B
accent
#E2454A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B42FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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