#B040AD#B040AD

#B040AD is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.7% C 0.193 H 328.8°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#B040AD
RGBrgb(176, 64, 173)
HSLhsl(302, 47%, 47%)
HSVhsv(302, 64%, 69%)
CMYKcmyk(0%, 63.6%, 1.7%, 31%)
CIE-LABlab(46.86, 58.85, -36.23)
CIE-LCHlch(46.86, 69.11, 328.38°)
OKLaboklab(56.69% 0.1652 -0.0999)
OKLCHoklch(56.69% 0.193 328.8)
XYZxyz(27.2804, 15.9159, 41.1623)
Luminance0.1591 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040AD #40B043
analogous
#7B40B0 #B040AD #B04075
triadic
#B040AD #ADB040 #40ADB0
tetradic
#B040AD #B07B40 #40B043 #4075B0
square
#B040AD #B07B40 #40B043 #4075B0
split-complementary
#B040AD #75B040 #40B07B
monochromatic
#561F55 #833081 #B040AD #C766C5 #D893D6

Accessibility & contrast

On white

5.02
#B040AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B040AD
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040AD#FFFFFF#000000##FFFFFF
##B040AD1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3465B0
Deuteranopia (green-blind)
#5D74AA
Tritanopia (blue-blind)
#B64E71
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b040ad;
/* rgb */ color: rgb(176, 64, 173);
/* oklch */ color: oklch(56.7% 0.193 328.8);
Tailwind
colors: {
  custom: {
    50: '#cb7dc6',
    500: '#b040ad',
    950: '#000000',
  },
}
SCSS
$custom: #b040ad;
$custom-light: #cb7dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#b040ad",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 301.607,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56695,
    "c": 0.19306,
    "h": 328.8
  },
  "luminance": 0.15914
}

Semantic roles & 50–950 ramp

primary
#B040AD
secondary
#89C38A
accent
#D65551
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B040AD

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

Preview Lab → · Contrast checker → · Palette generator →

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