#B040AF#B040AF

#B040AF is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.8% C 0.195 H 328.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#B040AF
RGBrgb(176, 64, 175)
HSLhsl(301, 47%, 47%)
HSVhsv(301, 64%, 69%)
CMYKcmyk(0%, 63.6%, 0.6%, 31%)
CIE-LABlab(46.97, 59.19, -37.24)
CIE-LCHlch(46.97, 69.94, 327.82°)
OKLaboklab(56.8% 0.1654 -0.1028)
OKLCHoklch(56.8% 0.195 328.1)
XYZxyz(27.4754, 15.9939, 42.1891)
Luminance0.1599 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040AF #40B041
analogous
#7940B0 #B040AF #B04077
triadic
#B040AF #AFB040 #40AFB0
tetradic
#B040AF #B07940 #40B041 #4077B0
square
#B040AF #B07940 #40B041 #4077B0
split-complementary
#B040AF #77B040 #40B079
monochromatic
#561F56 #833082 #B040AF #C766C6 #D893D7

Accessibility & contrast

On white

5.00
#B040AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#B040AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040AF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040AF#FFFFFF#000000##FFFFFF
##B040AF1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3266B2
Deuteranopia (green-blind)
#5C75AC
Tritanopia (blue-blind)
#B54E72
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b040af;
/* rgb */ color: rgb(176, 64, 175);
/* oklch */ color: oklch(56.8% 0.195 328.1);
Tailwind
colors: {
  custom: {
    50: '#cb7dc7',
    500: '#b040af',
    950: '#000000',
  },
}
SCSS
$custom: #b040af;
$custom-light: #cb7dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#b040af",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 300.536,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56803,
    "c": 0.19471,
    "h": 328.1
  },
  "luminance": 0.15992
}

Semantic roles & 50–950 ramp

primary
#B040AF
secondary
#89C389
accent
#D65351
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B040AF

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

Preview Lab → · Contrast checker → · Palette generator →

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