#BD40A8#BD40A8

#BD40A8 is a mid, vivid pink. Relative luminance 0.173; OKLCH L 58.3% C 0.197 H 335.2°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BD40A8
RGBrgb(189, 64, 168)
HSLhsl(310, 49%, 50%)
HSVhsv(310, 66%, 74%)
CMYKcmyk(0%, 66.1%, 11.1%, 25.9%)
CIE-LABlab(48.65, 61.32, -30.33)
CIE-LCHlch(48.65, 68.41, 333.69°)
OKLaboklab(58.32% 0.1786 -0.0826)
OKLCHoklch(58.32% 0.197 335.2)
XYZxyz(29.8878, 17.3152, 38.8063)
Luminance0.1731 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40A8 #40BD55
analogous
#9440BD #BD40A8 #BD406A
triadic
#BD40A8 #A8BD40 #40A8BD
tetradic
#BD40A8 #BD9440 #40BD55 #406ABD
square
#BD40A8 #BD9440 #40BD55 #406ABD
split-complementary
#BD40A8 #6ABD40 #40BD94
monochromatic
#622157 #8F317F #BD40A8 #CD6DBD #DD9AD2

Accessibility & contrast

On white

4.71
#BD40A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#BD40A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD40A8
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40A8#FFFFFF#000000##FFFFFF
##BD40A81.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4068AB
Deuteranopia (green-blind)
#697AA5
Tritanopia (blue-blind)
#C6486E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #bd40a8;
/* rgb */ color: rgb(189, 64, 168);
/* oklch */ color: oklch(58.3% 0.197 335.2);
Tailwind
colors: {
  custom: {
    50: '#d47ec2',
    500: '#bd40a8',
    950: '#000000',
  },
}
SCSS
$custom: #bd40a8;
$custom-light: #d47ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40a8",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 310.08,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58316,
    "c": 0.19683,
    "h": 335.2
  },
  "luminance": 0.17313
}

Semantic roles & 50–950 ramp

primary
#BD40A8
secondary
#90C999
accent
#D9664F
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #BD40A8

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

Preview Lab → · Contrast checker → · Palette generator →

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