#BD40C6#BD40C6

#BD40C6 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.9% C 0.220 H 325.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BD40C6
RGBrgb(189, 64, 198)
HSLhsl(296, 54%, 51%)
HSVhsv(296, 68%, 78%)
CMYKcmyk(4.5%, 67.7%, 0%, 22.4%)
CIE-LABlab(50.17, 66.23, -45.44)
CIE-LCHlch(50.17, 80.32, 325.55°)
OKLaboklab(59.91% 0.1805 -0.1263)
OKLCHoklch(59.91% 0.22 325)
XYZxyz(33.0119, 18.5649, 55.2597)
Luminance0.1856 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40C6 #49C640
analogous
#7A40C6 #BD40C6 #C6408C
triadic
#BD40C6 #C6BD40 #40C6BD
tetradic
#BD40C6 #C67A40 #49C640 #408CC6
square
#BD40C6 #C67A40 #49C640 #408CC6
split-complementary
#BD40C6 #8CC640 #40C67A
monochromatic
#66206C #932E9B #BD40C6 #CD6FD4 #DE9EE2

Accessibility & contrast

On white

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

On black

4.71
#BD40C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40C6
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40C6#FFFFFF#000000##000000
##BD40C61.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#226ECA
Deuteranopia (green-blind)
#5A7DC3
Tritanopia (blue-blind)
#C1557E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #bd40c6;
/* rgb */ color: rgb(189, 64, 198);
/* oklch */ color: oklch(59.9% 0.220 325.0);
Tailwind
colors: {
  custom: {
    50: '#d47fd8',
    500: '#bd40c6',
    950: '#000000',
  },
}
SCSS
$custom: #bd40c6;
$custom-light: #d47fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40c6",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 295.97,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59908,
    "c": 0.22031,
    "h": 325
  },
  "luminance": 0.18563
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BD40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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