#B42FC9#B42FC9

#B42FC9 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.4% C 0.237 H 321.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#B42FC9
RGBrgb(180, 47, 201)
HSLhsl(292, 62%, 49%)
HSVhsv(292, 77%, 79%)
CMYKcmyk(10.4%, 76.6%, 0%, 21.2%)
CIE-LABlab(46.92, 70.68, -52.46)
CIE-LCHlch(46.92, 88.02, 323.42°)
OKLaboklab(57.36% 0.1862 -0.1469)
OKLCHoklch(57.36% 0.237 321.7)
XYZxyz(30.3804, 15.9551, 56.7264)
Luminance0.1595 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42FC9 #44C92F
analogous
#672FC9 #B42FC9 #C92F91
triadic
#B42FC9 #C9B42F #2FC9B4
tetradic
#B42FC9 #C9672F #44C92F #2F91C9
square
#B42FC9 #C9672F #44C92F #2F91C9
split-complementary
#B42FC9 #91C92F #2FC967
monochromatic
#5B1866 #882397 #B42FC9 #C85CD9 #D98EE5

Accessibility & contrast

On white

5.01
#B42FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#B42FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42FC9
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42FC9#FFFFFF#000000##FFFFFF
##B42FC91.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CD
Deuteranopia (green-blind)
#4574C6
Tritanopia (blue-blind)
#B64E7B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b42fc9;
/* rgb */ color: rgb(180, 47, 201);
/* oklch */ color: oklch(57.4% 0.237 321.7);
Tailwind
colors: {
  custom: {
    50: '#cf77da',
    500: '#b42fc9',
    950: '#000000',
  },
}
SCSS
$custom: #b42fc9;
$custom-light: #cf77da;
$custom-dark: #000000;
JSON
{
  "hex": "#b42fc9",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 291.818,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57363,
    "c": 0.23715,
    "h": 321.7
  },
  "luminance": 0.15953
}

Semantic roles & 50–950 ramp

primary
#B42FC9
secondary
#8FCF85
accent
#E54359
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B42FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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