#BD40D2#BD40D2

#BD40D2 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.6% C 0.230 H 321.5°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#BD40D2
RGBrgb(189, 64, 210)
HSLhsl(291, 62%, 54%)
HSVhsv(291, 70%, 82%)
CMYKcmyk(10%, 69.5%, 0%, 17.6%)
CIE-LABlab(50.85, 68.35, -51.26)
CIE-LCHlch(50.85, 85.43, 323.13°)
OKLaboklab(60.61% 0.1803 -0.1432)
OKLCHoklch(60.61% 0.23 321.5)
XYZxyz(34.4512, 19.1406, 62.8401)
Luminance0.1914 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40D2 #55D240
analogous
#7440D2 #BD40D2 #D2409E
triadic
#BD40D2 #D2BD40 #40D2BD
tetradic
#BD40D2 #D27440 #55D240 #409ED2
square
#BD40D2 #D27440 #55D240 #409ED2
split-complementary
#BD40D2 #9ED240 #40D274
monochromatic
#6D1D7B #9929AC #BD40D2 #CE72DE #DFA3E9

Accessibility & contrast

On white

4.35
#BD40D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#BD40D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40D2
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40D2#FFFFFF#000000##000000
##BD40D21.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070D6
Deuteranopia (green-blind)
#527ECF
Tritanopia (blue-blind)
#BF5A85
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #bd40d2;
/* rgb */ color: rgb(189, 64, 210);
/* oklch */ color: oklch(60.6% 0.230 321.5);
Tailwind
colors: {
  custom: {
    50: '#d57fe0',
    500: '#bd40d2',
    950: '#000000',
  },
}
SCSS
$custom: #bd40d2;
$custom-light: #d57fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40d2",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 291.37,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.60611,
    "c": 0.23027,
    "h": 321.5
  },
  "luminance": 0.19139
}

Semantic roles & 50–950 ramp

primary
#BD40D2
secondary
#A1D698
accent
#E5435A
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BD40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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