#BD40C7#BD40C7

#BD40C7 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.0% C 0.221 H 324.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#BD40C7
RGBrgb(189, 64, 199)
HSLhsl(296, 55%, 52%)
HSVhsv(296, 68%, 78%)
CMYKcmyk(5%, 67.8%, 0%, 22%)
CIE-LABlab(50.23, 66.40, -45.93)
CIE-LCHlch(50.23, 80.74, 325.33°)
OKLaboklab(59.97% 0.1805 -0.1277)
OKLCHoklch(59.97% 0.221 324.7)
XYZxyz(33.1276, 18.6112, 55.8692)
Luminance0.1861 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40C7 #4AC740
analogous
#7A40C7 #BD40C7 #C7408D
triadic
#BD40C7 #C7BD40 #40C7BD
tetradic
#BD40C7 #C77A40 #4AC740 #408DC7
square
#BD40C7 #C77A40 #4AC740 #408DC7
split-complementary
#BD40C7 #8DC740 #40C77A
monochromatic
#67206D #942E9C #BD40C7 #CD6FD5 #DE9FE3

Accessibility & contrast

On white

4.45
#BD40C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#BD40C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40C7
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40C7#FFFFFF#000000##000000
##BD40C71.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#206ECB
Deuteranopia (green-blind)
#597DC4
Tritanopia (blue-blind)
#C1567F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #bd40c7;
/* rgb */ color: rgb(189, 64, 199);
/* oklch */ color: oklch(60.0% 0.221 324.7);
Tailwind
colors: {
  custom: {
    50: '#d47fd8',
    500: '#bd40c7',
    950: '#000000',
  },
}
SCSS
$custom: #bd40c7;
$custom-light: #d47fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40c7",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 295.556,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.59965,
    "c": 0.22113,
    "h": 324.7
  },
  "luminance": 0.18609
}

Semantic roles & 50–950 ramp

primary
#BD40C7
secondary
#98CF94
accent
#DE4A55
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BD40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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