#B42FBA#B42FBA

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

Color values

HEX#B42FBA
RGBrgb(180, 47, 186)
HSLhsl(297, 60%, 46%)
HSVhsv(297, 75%, 73%)
CMYKcmyk(3.2%, 74.7%, 0%, 27.1%)
CIE-LABlab(46.02, 68.12, -45.16)
CIE-LCHlch(46.02, 81.73, 326.46°)
OKLaboklab(56.44% 0.1872 -0.1256)
OKLCHoklch(56.44% 0.225 326.1)
XYZxyz(28.7013, 15.2835, 47.8831)
Luminance0.1528 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FBA #35BA2F
analogous
#6E2FBA #B42FBA #BA2F7A
triadic
#B42FBA #BAB42F #2FBAB4
tetradic
#B42FBA #BA6E2F #35BA2F #2F7ABA
square
#B42FBA #BA6E2F #35BA2F #2F7ABA
split-complementary
#B42FBA #7ABA2F #2FBA6E
monochromatic
#551658 #852389 #B42FBA #CE53D3 #DC84E0

Accessibility & contrast

On white

5.18
#B42FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#B42FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FBA
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FBA#FFFFFF#000000##FFFFFF
##B42FBA1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#5073B7
Tritanopia (blue-blind)
#B94773
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b42fba;
/* rgb */ color: rgb(180, 47, 186);
/* oklch */ color: oklch(56.4% 0.225 326.1);
Tailwind
colors: {
  custom: {
    50: '#ce76cf',
    500: '#b42fba',
    950: '#000000',
  },
}
SCSS
$custom: #b42fba;
$custom-light: #ce76cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fba",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 297.41,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5644,
    "c": 0.22541,
    "h": 326.1
  },
  "luminance": 0.15281
}

Semantic roles & 50–950 ramp

primary
#B42FBA
secondary
#7FC97C
accent
#E3454C
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B42FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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