#B040AB#B040AB

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

Color values

HEX#B040AB
RGBrgb(176, 64, 171)
HSLhsl(303, 47%, 47%)
HSVhsv(303, 64%, 69%)
CMYKcmyk(0%, 63.6%, 2.8%, 31%)
CIE-LABlab(46.76, 58.51, -35.21)
CIE-LCHlch(46.76, 68.29, 328.96°)
OKLaboklab(56.59% 0.1651 -0.0969)
OKLCHoklch(56.59% 0.191 329.6)
XYZxyz(27.0884, 15.8391, 40.1507)
Luminance0.1584 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040AB #40B045
analogous
#7D40B0 #B040AB #B04073
triadic
#B040AB #ABB040 #40ABB0
tetradic
#B040AB #B07D40 #40B045 #4073B0
square
#B040AB #B07D40 #40B045 #4073B0
split-complementary
#B040AB #73B040 #40B07D
monochromatic
#561F54 #83307F #B040AB #C766C3 #D893D5

Accessibility & contrast

On white

5.04
#B040AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#B040AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040AB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040AB#FFFFFF#000000##FFFFFF
##B040AB1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3665AE
Deuteranopia (green-blind)
#5E74A8
Tritanopia (blue-blind)
#B64D70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b040ab;
/* rgb */ color: rgb(176, 64, 171);
/* oklch */ color: oklch(56.6% 0.191 329.6);
Tailwind
colors: {
  custom: {
    50: '#cb7dc4',
    500: '#b040ab',
    950: '#000000',
  },
}
SCSS
$custom: #b040ab;
$custom-light: #cb7dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#b040ab",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 302.679,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56589,
    "c": 0.19142,
    "h": 329.6
  },
  "luminance": 0.15837
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B040AB

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

Preview Lab → · Contrast checker → · Palette generator →

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