#B040AE#B040AE

#B040AE is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.7% C 0.194 H 328.5°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#B040AE
RGBrgb(176, 64, 174)
HSLhsl(301, 47%, 47%)
HSVhsv(301, 64%, 69%)
CMYKcmyk(0%, 63.6%, 1.1%, 31%)
CIE-LABlab(46.92, 59.02, -36.74)
CIE-LCHlch(46.92, 69.52, 328.10°)
OKLaboklab(56.75% 0.1653 -0.1013)
OKLCHoklch(56.75% 0.194 328.5)
XYZxyz(27.3776, 15.9548, 41.6738)
Luminance0.1595 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040AE #40B042
analogous
#7A40B0 #B040AE #B04076
triadic
#B040AE #AEB040 #40AEB0
tetradic
#B040AE #B07A40 #40B042 #4076B0
square
#B040AE #B07A40 #40B042 #4076B0
split-complementary
#B040AE #76B040 #40B07A
monochromatic
#561F55 #833082 #B040AE #C766C6 #D893D6

Accessibility & contrast

On white

5.01
#B040AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#B040AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040AE
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040AE#FFFFFF#000000##FFFFFF
##B040AE1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3366B1
Deuteranopia (green-blind)
#5C74AB
Tritanopia (blue-blind)
#B64E71
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b040ae;
/* rgb */ color: rgb(176, 64, 174);
/* oklch */ color: oklch(56.7% 0.194 328.5);
Tailwind
colors: {
  custom: {
    50: '#cb7dc6',
    500: '#b040ae',
    950: '#000000',
  },
}
SCSS
$custom: #b040ae;
$custom-light: #cb7dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#b040ae",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 301.071,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56749,
    "c": 0.19387,
    "h": 328.5
  },
  "luminance": 0.15953
}

Semantic roles & 50–950 ramp

primary
#B040AE
secondary
#89C38A
accent
#D65451
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B040AE

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

Preview Lab → · Contrast checker → · Palette generator →

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