#B42FB9#B42FB9

#B42FB9 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.4% C 0.225 H 326.5°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#B42FB9
RGBrgb(180, 47, 185)
HSLhsl(298, 59%, 45%)
HSVhsv(298, 75%, 73%)
CMYKcmyk(2.7%, 74.6%, 0%, 27.5%)
CIE-LABlab(45.96, 67.95, -44.67)
CIE-LCHlch(45.96, 81.32, 326.68°)
OKLaboklab(56.38% 0.1872 -0.1241)
OKLCHoklch(56.38% 0.225 326.5)
XYZxyz(28.5953, 15.2411, 47.3252)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FB9 #34B92F
analogous
#6F2FB9 #B42FB9 #B92F79
triadic
#B42FB9 #B9B42F #2FB9B4
tetradic
#B42FB9 #B96F2F #34B92F #2F79B9
square
#B42FB9 #B96F2F #34B92F #2F79B9
split-complementary
#B42FB9 #79B92F #2FB96F
monochromatic
#551657 #852388 #B42FB9 #CE52D3 #DC83DF

Accessibility & contrast

On white

5.19
#B42FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#B42FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FB9
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FB9#FFFFFF#000000##FFFFFF
##B42FB91.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BD
Deuteranopia (green-blind)
#5173B6
Tritanopia (blue-blind)
#B94772
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b42fb9;
/* rgb */ color: rgb(180, 47, 185);
/* oklch */ color: oklch(56.4% 0.225 326.5);
Tailwind
colors: {
  custom: {
    50: '#ce76ce',
    500: '#b42fb9',
    950: '#000000',
  },
}
SCSS
$custom: #b42fb9;
$custom-light: #ce76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fb9",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 297.826,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56381,
    "c": 0.22463,
    "h": 326.5
  },
  "luminance": 0.15239
}

Semantic roles & 50–950 ramp

primary
#B42FB9
secondary
#7EC97B
accent
#E3454B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B42FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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