#BD40B8#BD40B8

#BD40B8 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.1% C 0.209 H 329.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#BD40B8
RGBrgb(189, 64, 184)
HSLhsl(302, 49%, 50%)
HSVhsv(302, 66%, 74%)
CMYKcmyk(0%, 66.1%, 2.6%, 25.9%)
CIE-LABlab(49.43, 63.87, -38.49)
CIE-LCHlch(49.43, 74.57, 328.92°)
OKLaboklab(59.13% 0.1801 -0.1061)
OKLCHoklch(59.13% 0.209 329.5)
XYZxyz(31.4711, 17.9486, 47.1450)
Luminance0.1795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40B8 #40BD45
analogous
#8440BD #BD40B8 #BD407A
triadic
#BD40B8 #B8BD40 #40B8BD
tetradic
#BD40B8 #BD8440 #40BD45 #407ABD
square
#BD40B8 #BD8440 #40BD45 #407ABD
split-complementary
#BD40B8 #7ABD40 #40BD84
monochromatic
#62215F #8F318B #BD40B8 #CD6DCA #DD9ADA

Accessibility & contrast

On white

4.58
#BD40B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#BD40B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40B8
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40B8#FFFFFF#000000##000000
##BD40B81.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#336BBB
Deuteranopia (green-blind)
#627BB5
Tritanopia (blue-blind)
#C44F77
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #bd40b8;
/* rgb */ color: rgb(189, 64, 184);
/* oklch */ color: oklch(59.1% 0.209 329.5);
Tailwind
colors: {
  custom: {
    50: '#d47fce',
    500: '#bd40b8',
    950: '#000000',
  },
}
SCSS
$custom: #bd40b8;
$custom-light: #d47fce;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40b8",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 302.4,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.59134,
    "c": 0.20903,
    "h": 329.5
  },
  "luminance": 0.17946
}

Semantic roles & 50–950 ramp

primary
#BD40B8
secondary
#90C992
accent
#D9544F
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #BD40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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