#BD40C3#BD40C3

#BD40C3 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.7% C 0.218 H 326.0°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#BD40C3
RGBrgb(189, 64, 195)
HSLhsl(297, 52%, 51%)
HSVhsv(297, 67%, 76%)
CMYKcmyk(3.1%, 67.2%, 0%, 23.5%)
CIE-LABlab(50.01, 65.71, -43.96)
CIE-LCHlch(50.01, 79.06, 326.22°)
OKLaboklab(59.74% 0.1805 -0.122)
OKLCHoklch(59.74% 0.218 326)
XYZxyz(32.6693, 18.4278, 53.4554)
Luminance0.1843 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40C3 #46C340
analogous
#7B40C3 #BD40C3 #C34087
triadic
#BD40C3 #C3BD40 #40C3BD
tetradic
#BD40C3 #C37B40 #46C340 #4087C3
square
#BD40C3 #C37B40 #46C340 #4087C3
split-complementary
#BD40C3 #87C340 #40C37B
monochromatic
#652168 #922F97 #BD40C3 #CD6FD2 #DD9DE0

Accessibility & contrast

On white

4.48
#BD40C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#BD40C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40C3
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40C3#FFFFFF#000000##000000
##BD40C31.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#266DC7
Deuteranopia (green-blind)
#5C7CC0
Tritanopia (blue-blind)
#C2547D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #bd40c3;
/* rgb */ color: rgb(189, 64, 195);
/* oklch */ color: oklch(59.7% 0.218 326.0);
Tailwind
colors: {
  custom: {
    50: '#d47fd6',
    500: '#bd40c3',
    950: '#000000',
  },
}
SCSS
$custom: #bd40c3;
$custom-light: #d47fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40c3",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 297.252,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59737,
    "c": 0.21785,
    "h": 326
  },
  "luminance": 0.18426
}

Semantic roles & 50–950 ramp

primary
#BD40C3
secondary
#95CC92
accent
#DC4C53
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BD40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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