#BD40D9#BD40D9

#BD40D9 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.0% C 0.236 H 319.6°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#BD40D9
RGBrgb(189, 64, 217)
HSLhsl(289, 67%, 55%)
HSVhsv(289, 71%, 85%)
CMYKcmyk(12.9%, 70.5%, 0%, 14.9%)
CIE-LABlab(51.26, 69.62, -54.59)
CIE-LCHlch(51.26, 88.47, 321.90°)
OKLaboklab(61.04% 0.1799 -0.153)
OKLCHoklch(61.04% 0.236 319.6)
XYZxyz(35.3425, 19.4971, 67.5339)
Luminance0.1950 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40D9 #5CD940
analogous
#7140D9 #BD40D9 #D940A8
triadic
#BD40D9 #D9BD40 #40D9BD
tetradic
#BD40D9 #D97140 #5CD940 #40A8D9
square
#BD40D9 #D97140 #5CD940 #40A8D9
split-complementary
#BD40D9 #A8D940 #40D971
monochromatic
#711A84 #9C24B7 #BD40D9 #CF73E3 #E0A6ED

Accessibility & contrast

On white

4.29
#BD40D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#BD40D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40D9
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40D9#FFFFFF#000000##000000
##BD40D91.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DD
Deuteranopia (green-blind)
#4C7ED5
Tritanopia (blue-blind)
#BD5D89
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #bd40d9;
/* rgb */ color: rgb(189, 64, 217);
/* oklch */ color: oklch(61.0% 0.236 319.6);
Tailwind
colors: {
  custom: {
    50: '#d580e5',
    500: '#bd40d9',
    950: '#000000',
  },
}
SCSS
$custom: #bd40d9;
$custom-light: #d580e5;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40d9",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 289.02,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.61038,
    "c": 0.23617,
    "h": 319.6
  },
  "luminance": 0.19495
}

Semantic roles & 50–950 ramp

primary
#BD40D9
secondary
#A6DA9A
accent
#EA3E5D
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BD40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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