#BD40B6#BD40B6

#BD40B6 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.0% C 0.207 H 330.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#BD40B6
RGBrgb(189, 64, 182)
HSLhsl(303, 49%, 50%)
HSVhsv(303, 66%, 74%)
CMYKcmyk(0%, 66.1%, 3.7%, 25.9%)
CIE-LABlab(49.33, 63.54, -37.48)
CIE-LCHlch(49.33, 73.77, 329.46°)
OKLaboklab(59.03% 0.18 -0.1032)
OKLCHoklch(59.03% 0.207 330.2)
XYZxyz(31.2630, 17.8653, 46.0486)
Luminance0.1786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40B6 #40BD47
analogous
#8640BD #BD40B6 #BD4078
triadic
#BD40B6 #B6BD40 #40B6BD
tetradic
#BD40B6 #BD8640 #40BD47 #4078BD
square
#BD40B6 #BD8640 #40BD47 #4078BD
split-complementary
#BD40B6 #78BD40 #40BD86
monochromatic
#62215E #8F318A #BD40B6 #CD6DC8 #DD9AD9

Accessibility & contrast

On white

4.59
#BD40B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#BD40B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BD40B6
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40B6#FFFFFF#000000##FFFFFF
##BD40B61.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#356AB9
Deuteranopia (green-blind)
#637BB3
Tritanopia (blue-blind)
#C44E76
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #bd40b6;
/* rgb */ color: rgb(189, 64, 182);
/* oklch */ color: oklch(59.0% 0.207 330.2);
Tailwind
colors: {
  custom: {
    50: '#d47fcc',
    500: '#bd40b6',
    950: '#000000',
  },
}
SCSS
$custom: #bd40b6;
$custom-light: #d47fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40b6",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 303.36,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.59028,
    "c": 0.20747,
    "h": 330.2
  },
  "luminance": 0.17863
}

Semantic roles & 50–950 ramp

primary
#BD40B6
secondary
#90C993
accent
#D9574F
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #BD40B6

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

Preview Lab → · Contrast checker → · Palette generator →

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