#B040AA#B040AA

#B040AA is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.5% C 0.191 H 329.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#B040AA
RGBrgb(176, 64, 170)
HSLhsl(303, 47%, 47%)
HSVhsv(303, 64%, 69%)
CMYKcmyk(0%, 63.6%, 3.4%, 31%)
CIE-LABlab(46.71, 58.34, -34.70)
CIE-LCHlch(46.71, 67.88, 329.26°)
OKLaboklab(56.54% 0.165 -0.0955)
OKLCHoklch(56.54% 0.191 329.9)
XYZxyz(26.9934, 15.8011, 39.6506)
Luminance0.1580 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040AA #40B046
analogous
#7E40B0 #B040AA #B04072
triadic
#B040AA #AAB040 #40AAB0
tetradic
#B040AA #B07E40 #40B046 #4072B0
square
#B040AA #B07E40 #40B046 #4072B0
split-complementary
#B040AA #72B040 #40B07E
monochromatic
#561F53 #83307F #B040AA #C766C2 #D893D4

Accessibility & contrast

On white

5.05
#B040AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#B040AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040AA
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040AA#FFFFFF#000000##FFFFFF
##B040AA1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3765AD
Deuteranopia (green-blind)
#5E74A7
Tritanopia (blue-blind)
#B64C6F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b040aa;
/* rgb */ color: rgb(176, 64, 170);
/* oklch */ color: oklch(56.5% 0.191 329.9);
Tailwind
colors: {
  custom: {
    50: '#cb7dc3',
    500: '#b040aa',
    950: '#000000',
  },
}
SCSS
$custom: #b040aa;
$custom-light: #cb7dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#b040aa",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 303.214,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56536,
    "c": 0.19061,
    "h": 329.9
  },
  "luminance": 0.15799
}

Semantic roles & 50–950 ramp

primary
#B040AA
secondary
#89C38C
accent
#D65951
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A12
muted
#827C81

Preview Lab

Preview with #B040AA

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

Preview Lab → · Contrast checker → · Palette generator →

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