#BD40CB#BD40CB

#BD40CB is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.2% C 0.224 H 323.5°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#BD40CB
RGBrgb(189, 64, 203)
HSLhsl(294, 57%, 52%)
HSVhsv(294, 68%, 80%)
CMYKcmyk(6.9%, 68.5%, 0%, 20.4%)
CIE-LABlab(50.45, 67.10, -47.88)
CIE-LCHlch(50.45, 82.43, 324.49°)
OKLaboklab(60.2% 0.1805 -0.1334)
OKLCHoklch(60.2% 0.224 323.5)
XYZxyz(33.5982, 18.7994, 58.3473)
Luminance0.1880 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40CB #4ECB40
analogous
#7840CB #BD40CB #CB4093
triadic
#BD40CB #CBBD40 #40CBBD
tetradic
#BD40CB #CB7840 #4ECB40 #4093CB
square
#BD40CB #CB7840 #4ECB40 #4093CB
split-complementary
#BD40CB #93CB40 #40CB78
monochromatic
#691F72 #962CA2 #BD40CB #CE70D8 #DEA0E5

Accessibility & contrast

On white

4.41
#BD40CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#BD40CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40CB
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40CB#FFFFFF#000000##000000
##BD40CB1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#186FCF
Deuteranopia (green-blind)
#577DC8
Tritanopia (blue-blind)
#C05781
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #bd40cb;
/* rgb */ color: rgb(189, 64, 203);
/* oklch */ color: oklch(60.2% 0.224 323.5);
Tailwind
colors: {
  custom: {
    50: '#d57fdb',
    500: '#bd40cb',
    950: '#000000',
  },
}
SCSS
$custom: #bd40cb;
$custom-light: #d57fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40cb",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 293.957,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60196,
    "c": 0.22443,
    "h": 323.5
  },
  "luminance": 0.18797
}

Semantic roles & 50–950 ramp

primary
#BD40CB
secondary
#9BD295
accent
#E04757
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BD40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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