#B040A1#B040A1

#B040A1 is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.1% C 0.183 H 333.4°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#B040A1
RGBrgb(176, 64, 161)
HSLhsl(308, 47%, 47%)
HSVhsv(308, 64%, 69%)
CMYKcmyk(0%, 63.6%, 8.5%, 31%)
CIE-LABlab(46.27, 56.86, -30.05)
CIE-LCHlch(46.27, 64.31, 332.14°)
OKLaboklab(56.08% 0.164 -0.0821)
OKLCHoklch(56.08% 0.183 333.4)
XYZxyz(26.1710, 15.4721, 35.3193)
Luminance0.1547 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040A1 #40B04F
analogous
#8740B0 #B040A1 #B04069
triadic
#B040A1 #A1B040 #40A1B0
tetradic
#B040A1 #B08740 #40B04F #4069B0
square
#B040A1 #B08740 #40B04F #4069B0
split-complementary
#B040A1 #69B040 #40B087
monochromatic
#561F4F #833078 #B040A1 #C766BA #D893CE

Accessibility & contrast

On white

5.13
#B040A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#B040A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040A1
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040A1#FFFFFF#000000##FFFFFF
##B040A11.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D63A4
Deuteranopia (green-blind)
#62739E
Tritanopia (blue-blind)
#B8496B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b040a1;
/* rgb */ color: rgb(176, 64, 161);
/* oklch */ color: oklch(56.1% 0.183 333.4);
Tailwind
colors: {
  custom: {
    50: '#cb7dbd',
    500: '#b040a1',
    950: '#000000',
  },
}
SCSS
$custom: #b040a1;
$custom-light: #cb7dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#b040a1",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 308.036,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56075,
    "c": 0.18343,
    "h": 333.4
  },
  "luminance": 0.1547
}

Semantic roles & 50–950 ramp

primary
#B040A1
secondary
#89C391
accent
#D66351
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B040A1

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

Preview Lab → · Contrast checker → · Palette generator →

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