#BD40B5#BD40B5

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

Color values

HEX#BD40B5
RGBrgb(189, 64, 181)
HSLhsl(304, 49%, 50%)
HSVhsv(304, 66%, 74%)
CMYKcmyk(0%, 66.1%, 4.2%, 25.9%)
CIE-LABlab(49.28, 63.38, -36.98)
CIE-LCHlch(49.28, 73.37, 329.74°)
OKLaboklab(58.98% 0.1799 -0.1017)
OKLCHoklch(58.98% 0.207 330.5)
XYZxyz(31.1600, 17.8241, 45.5063)
Luminance0.1782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40B5 #40BD48
analogous
#8740BD #BD40B5 #BD4077
triadic
#BD40B5 #B5BD40 #40B5BD
tetradic
#BD40B5 #BD8740 #40BD48 #4077BD
square
#BD40B5 #BD8740 #40BD48 #4077BD
split-complementary
#BD40B5 #77BD40 #40BD87
monochromatic
#62215D #8F3189 #BD40B5 #CD6DC7 #DD9AD9

Accessibility & contrast

On white

4.60
#BD40B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#BD40B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BD40B5
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40B5#FFFFFF#000000##FFFFFF
##BD40B51.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366AB8
Deuteranopia (green-blind)
#637BB2
Tritanopia (blue-blind)
#C44E75
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #bd40b5;
/* rgb */ color: rgb(189, 64, 181);
/* oklch */ color: oklch(59.0% 0.207 330.5);
Tailwind
colors: {
  custom: {
    50: '#d47fcb',
    500: '#bd40b5',
    950: '#000000',
  },
}
SCSS
$custom: #bd40b5;
$custom-light: #d47fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40b5",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 303.84,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58975,
    "c": 0.20668,
    "h": 330.5
  },
  "luminance": 0.17822
}

Semantic roles & 50–950 ramp

primary
#BD40B5
secondary
#90C993
accent
#D9584F
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #BD40B5

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

Preview Lab → · Contrast checker → · Palette generator →

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