#BD40E2#BD40E2

#BD40E2 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.6% C 0.244 H 317.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BD40E2
RGBrgb(189, 64, 226)
HSLhsl(286, 74%, 57%)
HSVhsv(286, 72%, 89%)
CMYKcmyk(16.4%, 71.7%, 0%, 11.4%)
CIE-LABlab(51.81, 71.28, -58.82)
CIE-LCHlch(51.81, 92.42, 320.47°)
OKLaboklab(61.61% 0.1792 -0.1654)
OKLCHoklch(61.61% 0.244 317.3)
XYZxyz(36.5451, 19.9782, 73.8679)
Luminance0.1998 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40E2 #65E240
analogous
#6C40E2 #BD40E2 #E240B6
triadic
#BD40E2 #E2BD40 #40E2BD
tetradic
#BD40E2 #E26C40 #65E240 #40B6E2
square
#BD40E2 #E26C40 #65E240 #40B6E2
split-complementary
#BD40E2 #B6E240 #40E26C
monochromatic
#751692 #A01EC7 #BD40E2 #CF75EA #E2AAF2

Accessibility & contrast

On white

4.20
#BD40E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#BD40E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40E2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40E2#FFFFFF#000000##000000
##BD40E21.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E7
Deuteranopia (green-blind)
#447FDE
Tritanopia (blue-blind)
#BB618E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #bd40e2;
/* rgb */ color: rgb(189, 64, 226);
/* oklch */ color: oklch(61.6% 0.244 317.3);
Tailwind
colors: {
  custom: {
    50: '#d580ec',
    500: '#bd40e2',
    950: '#000000',
  },
}
SCSS
$custom: #bd40e2;
$custom-light: #d580ec;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40e2",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 286.296,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61605,
    "c": 0.24385,
    "h": 317.3
  },
  "luminance": 0.19977
}

Semantic roles & 50–950 ramp

primary
#BD40E2
secondary
#ADE09E
accent
#F03862
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BD40E2

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

Preview Lab → · Contrast checker → · Palette generator →

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