#BD40B7#BD40B7

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

Color values

HEX#BD40B7
RGBrgb(189, 64, 183)
HSLhsl(303, 49%, 50%)
HSVhsv(303, 66%, 74%)
CMYKcmyk(0%, 66.1%, 3.2%, 25.9%)
CIE-LABlab(49.38, 63.70, -37.99)
CIE-LCHlch(49.38, 74.17, 329.19°)
OKLaboklab(59.08% 0.18 -0.1046)
OKLCHoklch(59.08% 0.208 329.8)
XYZxyz(31.3667, 17.9068, 46.5948)
Luminance0.1790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40B7 #40BD46
analogous
#8540BD #BD40B7 #BD4079
triadic
#BD40B7 #B7BD40 #40B7BD
tetradic
#BD40B7 #BD8540 #40BD46 #4079BD
square
#BD40B7 #BD8540 #40BD46 #4079BD
split-complementary
#BD40B7 #79BD40 #40BD85
monochromatic
#62215E #8F318B #BD40B7 #CD6DC9 #DD9ADA

Accessibility & contrast

On white

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

On black

4.58
#BD40B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40B7
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40B7#FFFFFF#000000##000000
##BD40B71.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#346ABA
Deuteranopia (green-blind)
#627BB4
Tritanopia (blue-blind)
#C44F76
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #bd40b7;
/* rgb */ color: rgb(189, 64, 183);
/* oklch */ color: oklch(59.1% 0.208 329.8);
Tailwind
colors: {
  custom: {
    50: '#d47fcd',
    500: '#bd40b7',
    950: '#000000',
  },
}
SCSS
$custom: #bd40b7;
$custom-light: #d47fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40b7",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 302.88,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.59081,
    "c": 0.20825,
    "h": 329.8
  },
  "luminance": 0.17905
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BD40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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