#B040BA#B040BA

#B040BA is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.4% C 0.204 H 324.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#B040BA
RGBrgb(176, 64, 186)
HSLhsl(295, 49%, 49%)
HSVhsv(295, 66%, 73%)
CMYKcmyk(5.4%, 65.6%, 0%, 27.1%)
CIE-LABlab(47.55, 61.12, -42.76)
CIE-LCHlch(47.55, 74.60, 325.02°)
OKLaboklab(57.42% 0.1658 -0.1188)
OKLCHoklch(57.42% 0.204 324.4)
XYZxyz(28.6001, 16.4438, 48.1124)
Luminance0.1644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040BA #4ABA40
analogous
#7340BA #B040BA #BA4087
triadic
#B040BA #BAB040 #40BAB0
tetradic
#B040BA #BA7340 #4ABA40 #4087BA
square
#B040BA #BA7340 #4ABA40 #4087BA
split-complementary
#B040BA #87BA40 #40BA73
monochromatic
#5A215F #85308C #B040BA #C46BCC #D699DC

Accessibility & contrast

On white

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

On black

4.29
#B040BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B040BA#FFFFFF#000000##FFFFFF
##B040BA1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2668BE
Deuteranopia (green-blind)
#5575B7
Tritanopia (blue-blind)
#B35378
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b040ba;
/* rgb */ color: rgb(176, 64, 186);
/* oklch */ color: oklch(57.4% 0.204 324.4);
Tailwind
colors: {
  custom: {
    50: '#cb7dcf',
    500: '#b040ba',
    950: '#000000',
  },
}
SCSS
$custom: #b040ba;
$custom-light: #cb7dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#b040ba",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 295.082,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57415,
    "c": 0.20398,
    "h": 324.4
  },
  "luminance": 0.16442
}

Semantic roles & 50–950 ramp

primary
#B040BA
secondary
#93C88E
accent
#D84F5B
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A14
muted
#827C82

Preview Lab

Preview with #B040BA

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

Preview Lab → · Contrast checker → · Palette generator →

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