#BD40C2#BD40C2

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

Color values

HEX#BD40C2
RGBrgb(189, 64, 194)
HSLhsl(298, 52%, 51%)
HSVhsv(298, 67%, 76%)
CMYKcmyk(2.6%, 67%, 0%, 23.9%)
CIE-LABlab(49.96, 65.54, -43.47)
CIE-LCHlch(49.96, 78.65, 326.45°)
OKLaboklab(59.68% 0.1805 -0.1205)
OKLCHoklch(59.68% 0.217 326.3)
XYZxyz(32.5566, 18.3828, 52.8619)
Luminance0.1838 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD40C2 #45C240
analogous
#7C40C2 #BD40C2 #C24086
triadic
#BD40C2 #C2BD40 #40C2BD
tetradic
#BD40C2 #C27C40 #45C240 #4086C2
square
#BD40C2 #C27C40 #45C240 #4086C2
split-complementary
#BD40C2 #86C240 #40C27C
monochromatic
#642167 #913095 #BD40C2 #CD6ED1 #DD9DE0

Accessibility & contrast

On white

4.49
#BD40C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#BD40C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD40C2
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD40C2#FFFFFF#000000##000000
##BD40C21.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#286DC6
Deuteranopia (green-blind)
#5C7CBF
Tritanopia (blue-blind)
#C2537C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #bd40c2;
/* rgb */ color: rgb(189, 64, 194);
/* oklch */ color: oklch(59.7% 0.217 326.3);
Tailwind
colors: {
  custom: {
    50: '#d47fd5',
    500: '#bd40c2',
    950: '#000000',
  },
}
SCSS
$custom: #bd40c2;
$custom-light: #d47fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#bd40c2",
  "rgb": {
    "r": 189,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 297.692,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59681,
    "c": 0.21704,
    "h": 326.3
  },
  "luminance": 0.18381
}

Semantic roles & 50–950 ramp

primary
#BD40C2
secondary
#94CC92
accent
#DB4D52
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BD40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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