#BD40B4#BD40B4

#BD40B4 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 58.9% C 0.206 H 330.9°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#BD40B4
RGBrgb(189, 64, 180)
HSLhsl(304, 49%, 50%)
HSVhsv(304, 66%, 74%)
CMYKcmyk(0%, 66.1%, 4.8%, 25.9%)
CIE-LABlab(49.23, 63.21, -36.47)
CIE-LCHlch(49.23, 72.98, 330.02°)
OKLaboklab(58.92% 0.1798 -0.1003)
OKLCHoklch(58.92% 0.206 330.9)
XYZxyz(31.0578, 17.7832, 44.9679)
Luminance0.1778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40B4 #40BD49
analogous
#8840BD #BD40B4 #BD4076
triadic
#BD40B4 #B4BD40 #40B4BD
tetradic
#BD40B4 #BD8840 #40BD49 #4076BD
square
#BD40B4 #BD8840 #40BD49 #4076BD
split-complementary
#BD40B4 #76BD40 #40BD88
monochromatic
#62215D #8F3188 #BD40B4 #CD6DC7 #DD9AD8

Accessibility & contrast

On white

4.61
#BD40B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#BD40B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BD40B4
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40B4#FFFFFF#000000##FFFFFF
##BD40B41.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#376AB7
Deuteranopia (green-blind)
#647BB1
Tritanopia (blue-blind)
#C44D75
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #bd40b4;
/* rgb */ color: rgb(189, 64, 180);
/* oklch */ color: oklch(58.9% 0.206 330.9);
Tailwind
colors: {
  custom: {
    50: '#d47ecb',
    500: '#bd40b4',
    950: '#000000',
  },
}
SCSS
$custom: #bd40b4;
$custom-light: #d47ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40b4",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 304.32,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58923,
    "c": 0.2059,
    "h": 330.9
  },
  "luminance": 0.17781
}

Semantic roles & 50–950 ramp

primary
#BD40B4
secondary
#90C994
accent
#D9594F
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #BD40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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