#BD40C8#BD40C8

#BD40C8 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.0% C 0.222 H 324.4°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BD40C8
RGBrgb(189, 64, 200)
HSLhsl(295, 55%, 52%)
HSVhsv(295, 68%, 78%)
CMYKcmyk(5.5%, 68%, 0%, 21.6%)
CIE-LABlab(50.28, 66.58, -46.42)
CIE-LCHlch(50.28, 81.16, 325.12°)
OKLaboklab(60.02% 0.1805 -0.1291)
OKLCHoklch(60.02% 0.222 324.4)
XYZxyz(33.2441, 18.6578, 56.4827)
Luminance0.1866 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40C8 #4BC840
analogous
#7940C8 #BD40C8 #C8408F
triadic
#BD40C8 #C8BD40 #40C8BD
tetradic
#BD40C8 #C87940 #4BC840 #408FC8
square
#BD40C8 #C87940 #4BC840 #408FC8
split-complementary
#BD40C8 #8FC840 #40C879
monochromatic
#68206E #942D9D #BD40C8 #CD70D6 #DE9FE3

Accessibility & contrast

On white

4.44
#BD40C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#BD40C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40C8
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40C8#FFFFFF#000000##000000
##BD40C81.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E6ECC
Deuteranopia (green-blind)
#597DC5
Tritanopia (blue-blind)
#C1567F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #bd40c8;
/* rgb */ color: rgb(189, 64, 200);
/* oklch */ color: oklch(60.0% 0.222 324.4);
Tailwind
colors: {
  custom: {
    50: '#d47fd9',
    500: '#bd40c8',
    950: '#000000',
  },
}
SCSS
$custom: #bd40c8;
$custom-light: #d47fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40c8",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 295.147,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.60022,
    "c": 0.22196,
    "h": 324.4
  },
  "luminance": 0.18656
}

Semantic roles & 50–950 ramp

primary
#BD40C8
secondary
#99D094
accent
#DF4955
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B15
muted
#837C83

Preview Lab

Preview with #BD40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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