#B042AA#B042AA

#B042AA is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.8% C 0.188 H 329.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#B042AA
RGBrgb(176, 66, 170)
HSLhsl(303, 45%, 47%)
HSVhsv(303, 63%, 69%)
CMYKcmyk(0%, 62.5%, 3.4%, 31%)
CIE-LABlab(47.01, 57.51, -34.22)
CIE-LCHlch(47.01, 66.92, 329.24°)
OKLaboklab(56.76% 0.1626 -0.0941)
OKLCHoklch(56.76% 0.188 329.9)
XYZxyz(27.1082, 16.0307, 39.6889)
Luminance0.1603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042AA #42B048
analogous
#7F42B0 #B042AA #B04273
triadic
#B042AA #AAB042 #42AAB0
tetradic
#B042AA #B07F42 #42B048 #4273B0
square
#B042AA #B07F42 #42B048 #4273B0
split-complementary
#B042AA #73B042 #42B07F
monochromatic
#572154 #83317F #B042AA #C769C1 #D795D4

Accessibility & contrast

On white

4.99
#B042AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#B042AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042AA
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042AA#FFFFFF#000000##FFFFFF
##B042AA1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AD
Deuteranopia (green-blind)
#5F75A7
Tritanopia (blue-blind)
#B64E70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b042aa;
/* rgb */ color: rgb(176, 66, 170);
/* oklch */ color: oklch(56.8% 0.188 329.9);
Tailwind
colors: {
  custom: {
    50: '#cb7ec3',
    500: '#b042aa',
    950: '#000000',
  },
}
SCSS
$custom: #b042aa;
$custom-light: #cb7ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#b042aa",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 303.273,
    "s": 45.455,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56756,
    "c": 0.18785,
    "h": 329.9
  },
  "luminance": 0.16029
}

Semantic roles & 50–950 ramp

primary
#B042AA
secondary
#8BC38E
accent
#D55A53
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A12
muted
#827C81

Preview Lab

Preview with #B042AA

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

Preview Lab → · Contrast checker → · Palette generator →

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