#BD40CC#BD40CC

#BD40CC is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.3% C 0.225 H 323.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BD40CC
RGBrgb(189, 64, 204)
HSLhsl(294, 58%, 53%)
HSVhsv(294, 69%, 80%)
CMYKcmyk(7.4%, 68.6%, 0%, 20%)
CIE-LABlab(50.51, 67.28, -48.36)
CIE-LCHlch(50.51, 82.86, 324.29°)
OKLaboklab(60.26% 0.1805 -0.1348)
OKLCHoklch(60.26% 0.225 323.2)
XYZxyz(33.7177, 18.8472, 58.9769)
Luminance0.1885 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40CC #4FCC40
analogous
#7740CC #BD40CC #CC4095
triadic
#BD40CC #CCBD40 #40CCBD
tetradic
#BD40CC #CC7740 #4FCC40 #4095CC
square
#BD40CC #CC7740 #4FCC40 #4095CC
split-complementary
#BD40CC #95CC40 #40CC77
monochromatic
#6A1F73 #962CA3 #BD40CC #CE70D9 #DEA1E6

Accessibility & contrast

On white

4.40
#BD40CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#BD40CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40CC
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40CC#FFFFFF#000000##000000
##BD40CC1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#156FD0
Deuteranopia (green-blind)
#567DC9
Tritanopia (blue-blind)
#C05881
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #bd40cc;
/* rgb */ color: rgb(189, 64, 204);
/* oklch */ color: oklch(60.3% 0.225 323.2);
Tailwind
colors: {
  custom: {
    50: '#d57fdc',
    500: '#bd40cc',
    950: '#000000',
  },
}
SCSS
$custom: #bd40cc;
$custom-light: #d57fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40cc",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 293.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60255,
    "c": 0.22526,
    "h": 323.2
  },
  "luminance": 0.18845
}

Semantic roles & 50–950 ramp

primary
#BD40CC
secondary
#9CD295
accent
#E14757
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BD40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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