#BD40BC#BD40BC

#BD40BC is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.4% C 0.212 H 328.2°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#BD40BC
RGBrgb(189, 64, 188)
HSLhsl(300, 49%, 50%)
HSVhsv(300, 66%, 74%)
CMYKcmyk(0%, 66.1%, 0.5%, 25.9%)
CIE-LABlab(49.64, 64.53, -40.49)
CIE-LCHlch(49.64, 76.18, 327.89°)
OKLaboklab(59.35% 0.1803 -0.1119)
OKLCHoklch(59.35% 0.212 328.2)
XYZxyz(31.8964, 18.1187, 49.3845)
Luminance0.1812 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40BC #40BD41
analogous
#8040BD #BD40BC #BD407E
triadic
#BD40BC #BCBD40 #40BCBD
tetradic
#BD40BC #BD8040 #40BD41 #407EBD
square
#BD40BC #BD8040 #40BD41 #407EBD
split-complementary
#BD40BC #7EBD40 #40BD80
monochromatic
#622161 #8F318F #BD40BC #CD6DCD #DD9ADC

Accessibility & contrast

On white

4.54
#BD40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#BD40BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40BC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40BC#FFFFFF#000000##000000
##BD40BC1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F6BC0
Deuteranopia (green-blind)
#607CB9
Tritanopia (blue-blind)
#C35179
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #bd40bc;
/* rgb */ color: rgb(189, 64, 188);
/* oklch */ color: oklch(59.4% 0.212 328.2);
Tailwind
colors: {
  custom: {
    50: '#d47fd0',
    500: '#bd40bc',
    950: '#000000',
  },
}
SCSS
$custom: #bd40bc;
$custom-light: #d47fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40bc",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 300.48,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5935,
    "c": 0.2122,
    "h": 328.2
  },
  "luminance": 0.18116
}

Semantic roles & 50–950 ramp

primary
#BD40BC
secondary
#90C990
accent
#D9504F
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #BD40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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