#B042AB#B042AB

#B042AB is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.8% C 0.189 H 329.6°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B042AB
RGBrgb(176, 66, 171)
HSLhsl(303, 45%, 47%)
HSVhsv(303, 63%, 69%)
CMYKcmyk(0%, 62.5%, 2.8%, 31%)
CIE-LABlab(47.06, 57.68, -34.73)
CIE-LCHlch(47.06, 67.33, 328.94°)
OKLaboklab(56.81% 0.1627 -0.0956)
OKLCHoklch(56.81% 0.189 329.6)
XYZxyz(27.2032, 16.0687, 40.1890)
Luminance0.1607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042AB #42B047
analogous
#7E42B0 #B042AB #B04274
triadic
#B042AB #ABB042 #42ABB0
tetradic
#B042AB #B07E42 #42B047 #4274B0
square
#B042AB #B07E42 #42B047 #4274B0
split-complementary
#B042AB #74B042 #42B07E
monochromatic
#572155 #833180 #B042AB #C769C2 #D795D4

Accessibility & contrast

On white

4.98
#B042AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B042AB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042AB#FFFFFF#000000##FFFFFF
##B042AB1.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3866AE
Deuteranopia (green-blind)
#5F75A8
Tritanopia (blue-blind)
#B64E70
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b042ab;
/* rgb */ color: rgb(176, 66, 171);
/* oklch */ color: oklch(56.8% 0.189 329.6);
Tailwind
colors: {
  custom: {
    50: '#cb7ec4',
    500: '#b042ab',
    950: '#000000',
  },
}
SCSS
$custom: #b042ab;
$custom-light: #cb7ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#b042ab",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 302.727,
    "s": 45.455,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56808,
    "c": 0.18867,
    "h": 329.6
  },
  "luminance": 0.16067
}

Semantic roles & 50–950 ramp

primary
#B042AB
secondary
#8BC38D
accent
#D55953
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B042AB

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

Preview Lab → · Contrast checker → · Palette generator →

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