#BD40B1#BD40B1

#BD40B1 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.8% C 0.204 H 331.9°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BD40B1
RGBrgb(189, 64, 177)
HSLhsl(306, 49%, 50%)
HSVhsv(306, 66%, 74%)
CMYKcmyk(0%, 66.1%, 6.3%, 25.9%)
CIE-LABlab(49.08, 62.73, -34.95)
CIE-LCHlch(49.08, 71.81, 330.88°)
OKLaboklab(58.77% 0.1796 -0.0959)
OKLCHoklch(58.77% 0.204 331.9)
XYZxyz(30.7555, 17.6623, 43.3758)
Luminance0.1766 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40B1 #40BD4C
analogous
#8B40BD #BD40B1 #BD4073
triadic
#BD40B1 #B1BD40 #40B1BD
tetradic
#BD40B1 #BD8B40 #40BD4C #4073BD
square
#BD40B1 #BD8B40 #40BD4C #4073BD
split-complementary
#BD40B1 #73BD40 #40BD8B
monochromatic
#62215B #8F3186 #BD40B1 #CD6DC4 #DD9AD7

Accessibility & contrast

On white

4.63
#BD40B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#BD40B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BD40B1
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40B1#FFFFFF#000000##FFFFFF
##BD40B11.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3969B4
Deuteranopia (green-blind)
#657BAE
Tritanopia (blue-blind)
#C54C73
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #bd40b1;
/* rgb */ color: rgb(189, 64, 177);
/* oklch */ color: oklch(58.8% 0.204 331.9);
Tailwind
colors: {
  custom: {
    50: '#d47ec8',
    500: '#bd40b1',
    950: '#000000',
  },
}
SCSS
$custom: #bd40b1;
$custom-light: #d47ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40b1",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 305.76,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58767,
    "c": 0.20359,
    "h": 331.9
  },
  "luminance": 0.1766
}

Semantic roles & 50–950 ramp

primary
#BD40B1
secondary
#90C995
accent
#D95C4F
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #BD40B1

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

Preview Lab → · Contrast checker → · Palette generator →

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