#B042B7#B042B7

#B042B7 is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.5% C 0.199 H 325.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#B042B7
RGBrgb(176, 66, 183)
HSLhsl(296, 47%, 49%)
HSVhsv(296, 64%, 72%)
CMYKcmyk(3.8%, 63.9%, 0%, 28.2%)
CIE-LABlab(47.68, 59.77, -40.80)
CIE-LCHlch(47.68, 72.36, 325.68°)
OKLaboklab(57.46% 0.1634 -0.1131)
OKLCHoklch(57.46% 0.199 325.3)
XYZxyz(28.3993, 16.5472, 46.4886)
Luminance0.1655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042B7 #49B742
analogous
#7642B7 #B042B7 #B74284
triadic
#B042B7 #B7B042 #42B7B0
tetradic
#B042B7 #B77642 #49B742 #4284B7
square
#B042B7 #B77642 #49B742 #4284B7
split-complementary
#B042B7 #84B742 #42B776
monochromatic
#59225D #85328A #B042B7 #C46CCA #D699DA

Accessibility & contrast

On white

4.87
#B042B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#B042B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042B7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042B7#FFFFFF#000000##FFFFFF
##B042B71.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D68BA
Deuteranopia (green-blind)
#5876B4
Tritanopia (blue-blind)
#B45377
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b042b7;
/* rgb */ color: rgb(176, 66, 183);
/* oklch */ color: oklch(57.5% 0.199 325.3);
Tailwind
colors: {
  custom: {
    50: '#cb7ecd',
    500: '#b042b7',
    950: '#000000',
  },
}
SCSS
$custom: #b042b7;
$custom-light: #cb7ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#b042b7",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 296.41,
    "s": 46.988,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57459,
    "c": 0.19877,
    "h": 325.3
  },
  "luminance": 0.16545
}

Semantic roles & 50–950 ramp

primary
#B042B7
secondary
#92C68F
accent
#D75159
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A13
muted
#827C82

Preview Lab

Preview with #B042B7

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

Preview Lab → · Contrast checker → · Palette generator →

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