#BD40E7#BD40E7

#BD40E7 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.9% C 0.248 H 316.1°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BD40E7
RGBrgb(189, 64, 231)
HSLhsl(285, 78%, 58%)
HSVhsv(285, 72%, 91%)
CMYKcmyk(18.2%, 72.3%, 0%, 9.4%)
CIE-LABlab(52.13, 72.23, -61.14)
CIE-LCHlch(52.13, 94.63, 319.75°)
OKLaboklab(61.93% 0.1787 -0.1722)
OKLCHoklch(61.93% 0.248 316.1)
XYZxyz(37.2412, 20.2566, 77.5340)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40E7 #6AE740
analogous
#6940E7 #BD40E7 #E740BE
triadic
#BD40E7 #E7BD40 #40E7BD
tetradic
#BD40E7 #E76940 #6AE740 #40BEE7
square
#BD40E7 #E76940 #6AE740 #40BEE7
split-complementary
#BD40E7 #BEE740 #40E769
monochromatic
#781399 #A21AD0 #BD40E7 #D076EE #E3ADF5

Accessibility & contrast

On white

4.16
#BD40E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#BD40E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40E7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40E7#FFFFFF#000000##000000
##BD40E71.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075EC
Deuteranopia (green-blind)
#3E80E3
Tritanopia (blue-blind)
#BA6390
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #bd40e7;
/* rgb */ color: rgb(189, 64, 231);
/* oklch */ color: oklch(61.9% 0.248 316.1);
Tailwind
colors: {
  custom: {
    50: '#d580ef',
    500: '#bd40e7',
    950: '#000000',
  },
}
SCSS
$custom: #bd40e7;
$custom-light: #d580ef;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40e7",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 231
  },
  "hsl": {
    "h": 284.91,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61928,
    "c": 0.24814,
    "h": 316.1
  },
  "luminance": 0.20255
}

Semantic roles & 50–950 ramp

primary
#BD40E7
secondary
#B1E3A0
accent
#F43464
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #BD40E7

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

Preview Lab → · Contrast checker → · Palette generator →

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