#B040B1#B040B1

#B040B1 is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.9% C 0.196 H 327.4°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B040B1
RGBrgb(176, 64, 177)
HSLhsl(299, 47%, 47%)
HSVhsv(299, 64%, 69%)
CMYKcmyk(0.6%, 63.8%, 0%, 30.6%)
CIE-LABlab(47.07, 59.54, -38.26)
CIE-LCHlch(47.07, 70.77, 327.28°)
OKLaboklab(56.91% 0.1655 -0.1057)
OKLCHoklch(56.91% 0.196 327.4)
XYZxyz(27.6733, 16.0730, 43.2313)
Luminance0.1607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040B1 #41B140
analogous
#7840B1 #B040B1 #B1407A
triadic
#B040B1 #B1B040 #40B1B0
tetradic
#B040B1 #B17840 #41B140 #407AB1
square
#B040B1 #B17840 #41B140 #407AB1
split-complementary
#B040B1 #7AB140 #40B178
monochromatic
#571F57 #833084 #B040B1 #C766C8 #D793D8

Accessibility & contrast

On white

4.98
#B040B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#B040B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040B1
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040B1#FFFFFF#000000##FFFFFF
##B040B11.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3066B4
Deuteranopia (green-blind)
#5A75AE
Tritanopia (blue-blind)
#B54F73
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b040b1;
/* rgb */ color: rgb(176, 64, 177);
/* oklch */ color: oklch(56.9% 0.196 327.4);
Tailwind
colors: {
  custom: {
    50: '#cb7dc9',
    500: '#b040b1',
    950: '#000000',
  },
}
SCSS
$custom: #b040b1;
$custom-light: #cb7dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#b040b1",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 299.469,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56912,
    "c": 0.19637,
    "h": 327.4
  },
  "luminance": 0.16071
}

Semantic roles & 50–950 ramp

primary
#B040B1
secondary
#8AC389
accent
#D75152
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B040B1

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

Preview Lab → · Contrast checker → · Palette generator →

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