#B040BD#B040BD

#B040BD is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.6% C 0.207 H 323.4°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#B040BD
RGBrgb(176, 64, 189)
HSLhsl(294, 49%, 50%)
HSVhsv(294, 66%, 74%)
CMYKcmyk(6.9%, 66.1%, 0%, 25.9%)
CIE-LABlab(47.72, 61.66, -44.25)
CIE-LCHlch(47.72, 75.90, 324.34°)
OKLaboklab(57.59% 0.1658 -0.1231)
OKLCHoklch(57.59% 0.207 323.4)
XYZxyz(28.9223, 16.5727, 49.8097)
Luminance0.1657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040BD #4DBD40
analogous
#7240BD #B040BD #BD408C
triadic
#B040BD #BDB040 #40BDB0
tetradic
#B040BD #BD7240 #4DBD40 #408CBD
square
#B040BD #BD7240 #4DBD40 #408CBD
split-complementary
#B040BD #8CBD40 #40BD72
monochromatic
#5B2162 #85318F #B040BD #C36DCD #D69ADD

Accessibility & contrast

On white

4.87
#B040BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B040BD
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040BD#FFFFFF#000000##FFFFFF
##B040BD1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2269C1
Deuteranopia (green-blind)
#5476BA
Tritanopia (blue-blind)
#B35479
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b040bd;
/* rgb */ color: rgb(176, 64, 189);
/* oklch */ color: oklch(57.6% 0.207 323.4);
Tailwind
colors: {
  custom: {
    50: '#cb7dd1',
    500: '#b040bd',
    950: '#000000',
  },
}
SCSS
$custom: #b040bd;
$custom-light: #cb7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#b040bd",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 293.76,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57588,
    "c": 0.20655,
    "h": 323.4
  },
  "luminance": 0.16571
}

Semantic roles & 50–950 ramp

primary
#B040BD
secondary
#96C990
accent
#D94F5D
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A14
muted
#827C82

Preview Lab

Preview with #B040BD

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

Preview Lab → · Contrast checker → · Palette generator →

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