#B040A3#B040A3

#B040A3 is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.2% C 0.185 H 332.6°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#B040A3
RGBrgb(176, 64, 163)
HSLhsl(307, 47%, 47%)
HSVhsv(307, 64%, 69%)
CMYKcmyk(0%, 63.6%, 7.4%, 31%)
CIE-LABlab(46.37, 57.19, -31.09)
CIE-LCHlch(46.37, 65.09, 331.47°)
OKLaboklab(56.18% 0.1643 -0.0851)
OKLCHoklch(56.18% 0.185 332.6)
XYZxyz(26.3488, 15.5432, 36.2556)
Luminance0.1554 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040A3 #40B04D
analogous
#8540B0 #B040A3 #B0406B
triadic
#B040A3 #A3B040 #40A3B0
tetradic
#B040A3 #B08540 #40B04D #406BB0
square
#B040A3 #B08540 #40B04D #406BB0
split-complementary
#B040A3 #6BB040 #40B085
monochromatic
#561F50 #833079 #B040A3 #C766BC #D893D0

Accessibility & contrast

On white

5.11
#B040A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#B040A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040A3
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040A3#FFFFFF#000000##FFFFFF
##B040A31.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C64A6
Deuteranopia (green-blind)
#6174A0
Tritanopia (blue-blind)
#B74A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b040a3;
/* rgb */ color: rgb(176, 64, 163);
/* oklch */ color: oklch(56.2% 0.185 332.6);
Tailwind
colors: {
  custom: {
    50: '#cb7dbe',
    500: '#b040a3',
    950: '#000000',
  },
}
SCSS
$custom: #b040a3;
$custom-light: #cb7dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#b040a3",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 306.964,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56175,
    "c": 0.185,
    "h": 332.6
  },
  "luminance": 0.15541
}

Semantic roles & 50–950 ramp

primary
#B040A3
secondary
#89C390
accent
#D66151
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B040A3

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

Preview Lab → · Contrast checker → · Palette generator →

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