#B040A0#B040A0

#B040A0 is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.0% C 0.183 H 333.8°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#B040A0
RGBrgb(176, 64, 160)
HSLhsl(309, 47%, 47%)
HSVhsv(309, 64%, 69%)
CMYKcmyk(0%, 63.6%, 9.1%, 31%)
CIE-LABlab(46.23, 56.70, -29.53)
CIE-LCHlch(46.23, 63.93, 332.49°)
OKLaboklab(56.03% 0.1639 -0.0806)
OKLCHoklch(56.03% 0.183 333.8)
XYZxyz(26.0832, 15.4370, 34.8568)
Luminance0.1543 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040A0 #40B050
analogous
#8840B0 #B040A0 #B04068
triadic
#B040A0 #A0B040 #40A0B0
tetradic
#B040A0 #B08840 #40B050 #4068B0
square
#B040A0 #B08840 #40B050 #4068B0
split-complementary
#B040A0 #68B040 #40B088
monochromatic
#561F4E #833077 #B040A0 #C766B9 #D893CE

Accessibility & contrast

On white

5.14
#B040A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#B040A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040A0
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040A0#FFFFFF#000000##FFFFFF
##B040A01.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E63A3
Deuteranopia (green-blind)
#63739D
Tritanopia (blue-blind)
#B8486A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b040a0;
/* rgb */ color: rgb(176, 64, 160);
/* oklch */ color: oklch(56.0% 0.183 333.8);
Tailwind
colors: {
  custom: {
    50: '#cb7dbc',
    500: '#b040a0',
    950: '#000000',
  },
}
SCSS
$custom: #b040a0;
$custom-light: #cb7dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#b040a0",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 308.571,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56025,
    "c": 0.18266,
    "h": 333.8
  },
  "luminance": 0.15435
}

Semantic roles & 50–950 ramp

primary
#B040A0
secondary
#89C391
accent
#D66451
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B040A0

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

Preview Lab → · Contrast checker → · Palette generator →

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