#BD40A2#BD40A2

#BD40A2 is a mid, vivid pink. Relative luminance 0.171; OKLCH L 58.0% C 0.193 H 337.5°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BD40A2
RGBrgb(189, 64, 162)
HSLhsl(313, 49%, 50%)
HSVhsv(313, 66%, 74%)
CMYKcmyk(0%, 66.1%, 14.3%, 25.9%)
CIE-LABlab(48.38, 60.42, -27.20)
CIE-LCHlch(48.38, 66.26, 335.76°)
OKLaboklab(58.03% 0.1778 -0.0737)
OKLCHoklch(58.03% 0.193 337.5)
XYZxyz(29.3417, 17.0968, 35.9301)
Luminance0.1709 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40A2 #40BD5B
analogous
#9A40BD #BD40A2 #BD4064
triadic
#BD40A2 #A2BD40 #40A2BD
tetradic
#BD40A2 #BD9A40 #40BD5B #4064BD
square
#BD40A2 #BD9A40 #40BD5B #4064BD
split-complementary
#BD40A2 #64BD40 #40BD9A
monochromatic
#622154 #8F317B #BD40A2 #CD6DB9 #DD9ACF

Accessibility & contrast

On white

4.75
#BD40A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#BD40A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD40A2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40A2#FFFFFF#000000##FFFFFF
##BD40A21.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4467A5
Deuteranopia (green-blind)
#6C7A9F
Tritanopia (blue-blind)
#C7466B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #bd40a2;
/* rgb */ color: rgb(189, 64, 162);
/* oklch */ color: oklch(58.0% 0.193 337.5);
Tailwind
colors: {
  custom: {
    50: '#d47ebe',
    500: '#bd40a2',
    950: '#000000',
  },
}
SCSS
$custom: #bd40a2;
$custom-light: #d47ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40a2",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 312.96,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58028,
    "c": 0.1925,
    "h": 337.5
  },
  "luminance": 0.17094
}

Semantic roles & 50–950 ramp

primary
#BD40A2
secondary
#90C99C
accent
#D96D4F
background
#FDF8FB
surface
#FBEFF6
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #BD40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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