#BD40C5#BD40C5

#BD40C5 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.9% C 0.219 H 325.3°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#BD40C5
RGBrgb(189, 64, 197)
HSLhsl(296, 53%, 51%)
HSVhsv(296, 68%, 77%)
CMYKcmyk(4.1%, 67.5%, 0%, 22.7%)
CIE-LABlab(50.12, 66.06, -44.95)
CIE-LCHlch(50.12, 79.90, 325.77°)
OKLaboklab(59.85% 0.1805 -0.1248)
OKLCHoklch(59.85% 0.219 325.3)
XYZxyz(32.8970, 18.5189, 54.6543)
Luminance0.1852 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40C5 #48C540
analogous
#7A40C5 #BD40C5 #C5408A
triadic
#BD40C5 #C5BD40 #40C5BD
tetradic
#BD40C5 #C57A40 #48C540 #408AC5
square
#BD40C5 #C57A40 #48C540 #408AC5
split-complementary
#BD40C5 #8AC540 #40C57A
monochromatic
#66206A #932F99 #BD40C5 #CD6FD3 #DD9EE2

Accessibility & contrast

On white

4.46
#BD40C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#BD40C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40C5
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40C5#FFFFFF#000000##000000
##BD40C51.004.464.704.70
#FFFFFF4.461.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#236DC9
Deuteranopia (green-blind)
#5B7DC2
Tritanopia (blue-blind)
#C1557E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #bd40c5;
/* rgb */ color: rgb(189, 64, 197);
/* oklch */ color: oklch(59.9% 0.219 325.3);
Tailwind
colors: {
  custom: {
    50: '#d47fd7',
    500: '#bd40c5',
    950: '#000000',
  },
}
SCSS
$custom: #bd40c5;
$custom-light: #d47fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40c5",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 296.391,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59851,
    "c": 0.21948,
    "h": 325.3
  },
  "luminance": 0.18517
}

Semantic roles & 50–950 ramp

primary
#BD40C5
secondary
#97CE93
accent
#DD4B54
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BD40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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