#B042B4#B042B4

#B042B4 is a mid, vivid purple. Relative luminance 0.164; OKLCH L 57.3% C 0.196 H 326.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#B042B4
RGBrgb(176, 66, 180)
HSLhsl(298, 46%, 48%)
HSVhsv(298, 63%, 71%)
CMYKcmyk(2.2%, 63.3%, 0%, 29.4%)
CIE-LABlab(47.53, 59.23, -39.30)
CIE-LCHlch(47.53, 71.08, 326.44°)
OKLaboklab(57.29% 0.1633 -0.1088)
OKLCHoklch(57.29% 0.196 326.3)
XYZxyz(28.0904, 16.4236, 44.8617)
Luminance0.1642 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042B4 #46B442
analogous
#7742B4 #B042B4 #B4427F
triadic
#B042B4 #B4B042 #42B4B0
tetradic
#B042B4 #B47742 #46B442 #427FB4
square
#B042B4 #B47742 #46B442 #427FB4
split-complementary
#B042B4 #7FB442 #42B477
monochromatic
#58215A #843287 #B042B4 #C56BC9 #D797D9

Accessibility & contrast

On white

4.90
#B042B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#B042B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042B4
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042B4#FFFFFF#000000##FFFFFF
##B042B41.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3068B7
Deuteranopia (green-blind)
#5A76B1
Tritanopia (blue-blind)
#B55275
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b042b4;
/* rgb */ color: rgb(176, 66, 180);
/* oklch */ color: oklch(57.3% 0.196 326.3);
Tailwind
colors: {
  custom: {
    50: '#cb7ecb',
    500: '#b042b4',
    950: '#000000',
  },
}
SCSS
$custom: #b042b4;
$custom-light: #cb7ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#b042b4",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 297.895,
    "s": 46.341,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57292,
    "c": 0.19621,
    "h": 326.3
  },
  "luminance": 0.16422
}

Semantic roles & 50–950 ramp

primary
#B042B4
secondary
#8FC58D
accent
#D65256
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B042B4

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

Preview Lab → · Contrast checker → · Palette generator →

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