#BD40B2#BD40B2

#BD40B2 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.8% C 0.204 H 331.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BD40B2
RGBrgb(189, 64, 178)
HSLhsl(305, 49%, 50%)
HSVhsv(305, 66%, 74%)
CMYKcmyk(0%, 66.1%, 5.8%, 25.9%)
CIE-LABlab(49.13, 62.89, -35.46)
CIE-LCHlch(49.13, 72.20, 330.59°)
OKLaboklab(58.82% 0.1797 -0.0974)
OKLCHoklch(58.82% 0.204 331.5)
XYZxyz(30.8555, 17.7023, 43.9026)
Luminance0.1770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40B2 #40BD4B
analogous
#8A40BD #BD40B2 #BD4074
triadic
#BD40B2 #B2BD40 #40B2BD
tetradic
#BD40B2 #BD8A40 #40BD4B #4074BD
square
#BD40B2 #BD8A40 #40BD4B #4074BD
split-complementary
#BD40B2 #74BD40 #40BD8A
monochromatic
#62215C #8F3187 #BD40B2 #CD6DC5 #DD9AD7

Accessibility & contrast

On white

4.63
#BD40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#BD40B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BD40B2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40B2#FFFFFF#000000##FFFFFF
##BD40B21.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396AB5
Deuteranopia (green-blind)
#657BAF
Tritanopia (blue-blind)
#C54D74
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #bd40b2;
/* rgb */ color: rgb(189, 64, 178);
/* oklch */ color: oklch(58.8% 0.204 331.5);
Tailwind
colors: {
  custom: {
    50: '#d47ec9',
    500: '#bd40b2',
    950: '#000000',
  },
}
SCSS
$custom: #bd40b2;
$custom-light: #d47ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40b2",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 305.28,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58819,
    "c": 0.20436,
    "h": 331.5
  },
  "luminance": 0.177
}

Semantic roles & 50–950 ramp

primary
#BD40B2
secondary
#90C995
accent
#D95B4F
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #BD40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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