#B040BC#B040BC

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

Color values

HEX#B040BC
RGBrgb(176, 64, 188)
HSLhsl(294, 49%, 49%)
HSVhsv(294, 66%, 74%)
CMYKcmyk(6.4%, 66%, 0%, 26.3%)
CIE-LABlab(47.66, 61.48, -43.75)
CIE-LCHlch(47.66, 75.46, 324.56°)
OKLaboklab(57.53% 0.1658 -0.1217)
OKLCHoklch(57.53% 0.206 323.7)
XYZxyz(28.8142, 16.5294, 49.2400)
Luminance0.1653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040BC #4CBC40
analogous
#7240BC #B040BC #BC408A
triadic
#B040BC #BCB040 #40BCB0
tetradic
#B040BC #BC7240 #4CBC40 #408ABC
square
#B040BC #BC7240 #4CBC40 #408ABC
split-complementary
#B040BC #8ABC40 #40BC72
monochromatic
#5B2161 #85308E #B040BC #C46CCD #D69ADD

Accessibility & contrast

On white

4.88
#B040BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#B040BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040BC
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040BC#FFFFFF#000000##FFFFFF
##B040BC1.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2369C0
Deuteranopia (green-blind)
#5476B9
Tritanopia (blue-blind)
#B35479
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b040bc;
/* rgb */ color: rgb(176, 64, 188);
/* oklch */ color: oklch(57.5% 0.206 323.7);
Tailwind
colors: {
  custom: {
    50: '#cb7dd1',
    500: '#b040bc',
    950: '#000000',
  },
}
SCSS
$custom: #b040bc;
$custom-light: #cb7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#b040bc",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 294.194,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.5753,
    "c": 0.2057,
    "h": 323.7
  },
  "luminance": 0.16528
}

Semantic roles & 50–950 ramp

primary
#B040BC
secondary
#95C98F
accent
#D94F5C
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A14
muted
#827C82

Preview Lab

Preview with #B040BC

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

Preview Lab → · Contrast checker → · Palette generator →

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