#B040A4#B040A4

#B040A4 is a mid, vivid purple. Relative luminance 0.156; OKLCH L 56.2% C 0.186 H 332.2°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#B040A4
RGBrgb(176, 64, 164)
HSLhsl(306, 47%, 47%)
HSVhsv(306, 64%, 69%)
CMYKcmyk(0%, 63.6%, 6.8%, 31%)
CIE-LABlab(46.42, 57.35, -31.61)
CIE-LCHlch(46.42, 65.48, 331.14°)
OKLaboklab(56.23% 0.1644 -0.0866)
OKLCHoklch(56.23% 0.186 332.2)
XYZxyz(26.4387, 15.5792, 36.7293)
Luminance0.1558 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040A4 #40B04C
analogous
#8440B0 #B040A4 #B0406C
triadic
#B040A4 #A4B040 #40A4B0
tetradic
#B040A4 #B08440 #40B04C #406CB0
square
#B040A4 #B08440 #40B04C #406CB0
split-complementary
#B040A4 #6CB040 #40B084
monochromatic
#561F50 #83307A #B040A4 #C766BD #D893D0

Accessibility & contrast

On white

5.10
#B040A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#B040A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040A4
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040A4#FFFFFF#000000##FFFFFF
##B040A41.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B64A7
Deuteranopia (green-blind)
#6174A1
Tritanopia (blue-blind)
#B74A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b040a4;
/* rgb */ color: rgb(176, 64, 164);
/* oklch */ color: oklch(56.2% 0.186 332.2);
Tailwind
colors: {
  custom: {
    50: '#cb7dbf',
    500: '#b040a4',
    950: '#000000',
  },
}
SCSS
$custom: #b040a4;
$custom-light: #cb7dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#b040a4",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 306.429,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56226,
    "c": 0.18579,
    "h": 332.2
  },
  "luminance": 0.15577
}

Semantic roles & 50–950 ramp

primary
#B040A4
secondary
#89C38F
accent
#D66051
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B040A4

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

Preview Lab → · Contrast checker → · Palette generator →

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