#B042BA#B042BA

#B042BA is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.6% C 0.201 H 324.3°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B042BA
RGBrgb(176, 66, 186)
HSLhsl(295, 48%, 49%)
HSVhsv(295, 65%, 73%)
CMYKcmyk(5.4%, 64.5%, 0%, 27.1%)
CIE-LABlab(47.85, 60.30, -42.29)
CIE-LCHlch(47.85, 73.66, 324.96°)
OKLaboklab(57.63% 0.1635 -0.1175)
OKLCHoklch(57.63% 0.201 324.3)
XYZxyz(28.7149, 16.6734, 48.1507)
Luminance0.1667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042BA #4CBA42
analogous
#7442BA #B042BA #BA4288
triadic
#B042BA #BAB042 #42BAB0
tetradic
#B042BA #BA7442 #4CBA42 #4288BA
square
#B042BA #BA7442 #4CBA42 #4288BA
split-complementary
#B042BA #88BA42 #42BA74
monochromatic
#5B2260 #85328D #B042BA #C46ECB #D69BDB

Accessibility & contrast

On white

4.84
#B042BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#B042BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042BA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042BA#FFFFFF#000000##FFFFFF
##B042BA1.004.844.334.84
#FFFFFF4.841.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A69BE
Deuteranopia (green-blind)
#5776B7
Tritanopia (blue-blind)
#B35478
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b042ba;
/* rgb */ color: rgb(176, 66, 186);
/* oklch */ color: oklch(57.6% 0.201 324.3);
Tailwind
colors: {
  custom: {
    50: '#cb7ecf',
    500: '#b042ba',
    950: '#000000',
  },
}
SCSS
$custom: #b042ba;
$custom-light: #cb7ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#b042ba",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 295,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57628,
    "c": 0.20135,
    "h": 324.3
  },
  "luminance": 0.16672
}

Semantic roles & 50–950 ramp

primary
#B042BA
secondary
#95C890
accent
#D7515C
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #B042BA

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

Preview Lab → · Contrast checker → · Palette generator →

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