#B42FB7#B42FB7

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

Color values

HEX#B42FB7
RGBrgb(180, 47, 183)
HSLhsl(299, 59%, 45%)
HSVhsv(299, 74%, 72%)
CMYKcmyk(1.6%, 74.3%, 0%, 28.2%)
CIE-LABlab(45.85, 67.62, -43.67)
CIE-LCHlch(45.85, 80.50, 327.14°)
OKLaboklab(56.26% 0.1873 -0.1212)
OKLCHoklch(56.26% 0.223 327.1)
XYZxyz(28.3857, 15.1572, 46.2211)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FB7 #32B72F
analogous
#702FB7 #B42FB7 #B72F76
triadic
#B42FB7 #B7B42F #2FB7B4
tetradic
#B42FB7 #B7702F #32B72F #2F76B7
square
#B42FB7 #B7702F #32B72F #2F76B7
split-complementary
#B42FB7 #76B72F #2FB770
monochromatic
#541656 #842286 #B42FB7 #CF51D2 #DD82DF

Accessibility & contrast

On white

5.21
#B42FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B42FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FB7
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FB7#FFFFFF#000000##FFFFFF
##B42FB71.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0862BB
Deuteranopia (green-blind)
#5272B4
Tritanopia (blue-blind)
#B94671
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b42fb7;
/* rgb */ color: rgb(180, 47, 183);
/* oklch */ color: oklch(56.3% 0.223 327.1);
Tailwind
colors: {
  custom: {
    50: '#ce76cd',
    500: '#b42fb7',
    950: '#000000',
  },
}
SCSS
$custom: #b42fb7;
$custom-light: #ce76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fb7",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 298.676,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56263,
    "c": 0.2231,
    "h": 327.1
  },
  "luminance": 0.15155
}

Semantic roles & 50–950 ramp

primary
#B42FB7
secondary
#7CC87A
accent
#E24549
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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