#BD42E2#BD42E2

#BD42E2 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.8% C 0.242 H 317.2°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#BD42E2
RGBrgb(189, 66, 226)
HSLhsl(286, 73%, 57%)
HSVhsv(286, 71%, 89%)
CMYKcmyk(16.4%, 70.8%, 0%, 11.4%)
CIE-LABlab(52.07, 70.55, -58.40)
CIE-LCHlch(52.07, 91.59, 320.38°)
OKLaboklab(61.79% 0.1773 -0.1641)
OKLCHoklch(61.79% 0.242 317.2)
XYZxyz(36.6599, 20.2078, 73.9062)
Luminance0.2021 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD42E2 #67E242
analogous
#6D42E2 #BD42E2 #E242B7
triadic
#BD42E2 #E2BD42 #42E2BD
tetradic
#BD42E2 #E26D42 #67E242 #42B7E2
square
#BD42E2 #E26D42 #67E242 #42B7E2
split-complementary
#BD42E2 #B7E242 #42E26D
monochromatic
#761793 #A11FC8 #BD42E2 #D077EA #E2ACF2

Accessibility & contrast

On white

4.17
#BD42E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#BD42E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BD42E2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD42E2#FFFFFF#000000##000000
##BD42E21.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E7
Deuteranopia (green-blind)
#4680DE
Tritanopia (blue-blind)
#BB628E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #bd42e2;
/* rgb */ color: rgb(189, 66, 226);
/* oklch */ color: oklch(61.8% 0.242 317.2);
Tailwind
colors: {
  custom: {
    50: '#d581ec',
    500: '#bd42e2',
    950: '#000000',
  },
}
SCSS
$custom: #bd42e2;
$custom-light: #d581ec;
$custom-dark: #000000;
JSON
{
  "hex": "#bd42e2",
  "rgb": {
    "r": 189,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 286.125,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61789,
    "c": 0.24164,
    "h": 317.2
  },
  "luminance": 0.20206
}

Semantic roles & 50–950 ramp

primary
#BD42E2
secondary
#AEE09F
accent
#F03862
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BD42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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