#B040BB#B040BB

#B040BB is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.5% C 0.205 H 324.0°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B040BB
RGBrgb(176, 64, 187)
HSLhsl(295, 49%, 49%)
HSVhsv(295, 66%, 73%)
CMYKcmyk(5.9%, 65.8%, 0%, 26.7%)
CIE-LABlab(47.61, 61.30, -43.26)
CIE-LCHlch(47.61, 75.03, 324.79°)
OKLaboklab(57.47% 0.1658 -0.1203)
OKLCHoklch(57.47% 0.205 324)
XYZxyz(28.7068, 16.4864, 48.6742)
Luminance0.1648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040BB #4BBB40
analogous
#7340BB #B040BB #BB4089
triadic
#B040BB #BBB040 #40BBB0
tetradic
#B040BB #BB7340 #4BBB40 #4089BB
square
#B040BB #BB7340 #4BBB40 #4089BB
split-complementary
#B040BB #89BB40 #40BB73
monochromatic
#5A2160 #85308D #B040BB #C46CCD #D699DC

Accessibility & contrast

On white

4.89
#B040BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#B040BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040BB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040BB#FFFFFF#000000##FFFFFF
##B040BB1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2568BF
Deuteranopia (green-blind)
#5576B8
Tritanopia (blue-blind)
#B35378
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b040bb;
/* rgb */ color: rgb(176, 64, 187);
/* oklch */ color: oklch(57.5% 0.205 324.0);
Tailwind
colors: {
  custom: {
    50: '#cb7dd0',
    500: '#b040bb',
    950: '#000000',
  },
}
SCSS
$custom: #b040bb;
$custom-light: #cb7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#b040bb",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 294.634,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57472,
    "c": 0.20483,
    "h": 324
  },
  "luminance": 0.16485
}

Semantic roles & 50–950 ramp

primary
#B040BB
secondary
#94C88F
accent
#D94F5C
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A14
muted
#827C82

Preview Lab

Preview with #B040BB

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

Preview Lab → · Contrast checker → · Palette generator →

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