#BD40E0#BD40E0

#BD40E0 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.5% C 0.242 H 317.8°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BD40E0
RGBrgb(189, 64, 224)
HSLhsl(287, 72%, 56%)
HSVhsv(287, 71%, 88%)
CMYKcmyk(15.6%, 71.4%, 0%, 12.2%)
CIE-LABlab(51.69, 70.91, -57.88)
CIE-LCHlch(51.69, 91.54, 320.78°)
OKLaboklab(61.48% 0.1794 -0.1626)
OKLCHoklch(61.48% 0.242 317.8)
XYZxyz(36.2723, 19.8690, 72.4310)
Luminance0.1987 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40E0 #63E040
analogous
#6D40E0 #BD40E0 #E040B3
triadic
#BD40E0 #E0BD40 #40E0BD
tetradic
#BD40E0 #E06D40 #63E040 #40B3E0
square
#BD40E0 #E06D40 #63E040 #40B3E0
split-complementary
#BD40E0 #B3E040 #40E06D
monochromatic
#74178E #9F20C3 #BD40E0 #CF75E9 #E1A9F1

Accessibility & contrast

On white

4.22
#BD40E0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#BD40E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40E0
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40E0#FFFFFF#000000##000000
##BD40E01.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E5
Deuteranopia (green-blind)
#467FDC
Tritanopia (blue-blind)
#BC608D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #bd40e0;
/* rgb */ color: rgb(189, 64, 224);
/* oklch */ color: oklch(61.5% 0.242 317.8);
Tailwind
colors: {
  custom: {
    50: '#d580ea',
    500: '#bd40e0',
    950: '#000000',
  },
}
SCSS
$custom: #bd40e0;
$custom-light: #d580ea;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40e0",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 224
  },
  "hsl": {
    "h": 286.875,
    "s": 72.072,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61477,
    "c": 0.24214,
    "h": 317.8
  },
  "luminance": 0.19867
}

Semantic roles & 50–950 ramp

primary
#BD40E0
secondary
#ABDF9D
accent
#EF3961
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BD40E0

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

Preview Lab → · Contrast checker → · Palette generator →

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