#BD40DF#BD40DF

#BD40DF is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.4% C 0.241 H 318.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#BD40DF
RGBrgb(189, 64, 223)
HSLhsl(287, 71%, 56%)
HSVhsv(287, 71%, 87%)
CMYKcmyk(15.2%, 71.3%, 0%, 12.5%)
CIE-LABlab(51.63, 70.73, -57.42)
CIE-LCHlch(51.63, 91.10, 320.93°)
OKLaboklab(61.41% 0.1795 -0.1612)
OKLCHoklch(61.41% 0.241 318.1)
XYZxyz(36.1371, 19.8149, 71.7189)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40DF #62DF40
analogous
#6E40DF #BD40DF #DF40B2
triadic
#BD40DF #DFBD40 #40DFBD
tetradic
#BD40DF #DF6E40 #62DF40 #40B2DF
square
#BD40DF #DF6E40 #62DF40 #40B2DF
split-complementary
#BD40DF #B2DF40 #40DF6E
monochromatic
#74188D #9F20C1 #BD40DF #CF74E8 #E1A9F1

Accessibility & contrast

On white

4.23
#BD40DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#BD40DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40DF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40DF#FFFFFF#000000##000000
##BD40DF1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E3
Deuteranopia (green-blind)
#477FDB
Tritanopia (blue-blind)
#BC608C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #bd40df;
/* rgb */ color: rgb(189, 64, 223);
/* oklch */ color: oklch(61.4% 0.241 318.1);
Tailwind
colors: {
  custom: {
    50: '#d580ea',
    500: '#bd40df',
    950: '#000000',
  },
}
SCSS
$custom: #bd40df;
$custom-light: #d580ea;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40df",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 287.17,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.61414,
    "c": 0.24128,
    "h": 318.1
  },
  "luminance": 0.19813
}

Semantic roles & 50–950 ramp

primary
#BD40DF
secondary
#ABDE9D
accent
#EE3A60
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BD40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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