#B040AC#B040AC

#B040AC is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.6% C 0.192 H 329.2°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#B040AC
RGBrgb(176, 64, 172)
HSLhsl(302, 47%, 47%)
HSVhsv(302, 64%, 69%)
CMYKcmyk(0%, 63.6%, 2.3%, 31%)
CIE-LABlab(46.81, 58.68, -35.72)
CIE-LCHlch(46.81, 68.70, 328.67°)
OKLaboklab(56.64% 0.1651 -0.0984)
OKLCHoklch(56.64% 0.192 329.2)
XYZxyz(27.1840, 15.8773, 40.6546)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040AC #40B044
analogous
#7C40B0 #B040AC #B04074
triadic
#B040AC #ACB040 #40ACB0
tetradic
#B040AC #B07C40 #40B044 #4074B0
square
#B040AC #B07C40 #40B044 #4074B0
split-complementary
#B040AC #74B040 #40B07C
monochromatic
#561F54 #833080 #B040AC #C766C4 #D893D5

Accessibility & contrast

On white

5.03
#B040AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#B040AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040AC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040AC#FFFFFF#000000##FFFFFF
##B040AC1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3565AF
Deuteranopia (green-blind)
#5D74A9
Tritanopia (blue-blind)
#B64D70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b040ac;
/* rgb */ color: rgb(176, 64, 172);
/* oklch */ color: oklch(56.6% 0.192 329.2);
Tailwind
colors: {
  custom: {
    50: '#cb7dc5',
    500: '#b040ac',
    950: '#000000',
  },
}
SCSS
$custom: #b040ac;
$custom-light: #cb7dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#b040ac",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 302.143,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56642,
    "c": 0.19223,
    "h": 329.2
  },
  "luminance": 0.15875
}

Semantic roles & 50–950 ramp

primary
#B040AC
secondary
#89C38B
accent
#D65651
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B040AC

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

Preview Lab → · Contrast checker → · Palette generator →

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