#B940AE#B940AE

#B940AE is a mid, vivid purple. Relative luminance 0.170; OKLCH L 58.0% C 0.199 H 331.6°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B940AE
RGBrgb(185, 64, 174)
HSLhsl(305, 49%, 49%)
HSVhsv(305, 65%, 73%)
CMYKcmyk(0%, 65.4%, 5.9%, 27.5%)
CIE-LABlab(48.31, 61.26, -34.45)
CIE-LCHlch(48.31, 70.28, 330.65°)
OKLaboklab(58.04% 0.1751 -0.0945)
OKLCHoklch(58.04% 0.199 331.6)
XYZxyz(29.4809, 17.0393, 41.7724)
Luminance0.1704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940AE #40B94B
analogous
#8840B9 #B940AE #B94072
triadic
#B940AE #AEB940 #40AEB9
tetradic
#B940AE #B98840 #40B94B #4072B9
square
#B940AE #B98840 #40B94B #4072B9
split-complementary
#B940AE #72B940 #40B988
monochromatic
#5E2158 #8C3083 #B940AE #CC6BC3 #DB98D5

Accessibility & contrast

On white

4.76
#B940AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#B940AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B940AE
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940AE#FFFFFF#000000##FFFFFF
##B940AE1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3968B1
Deuteranopia (green-blind)
#6379AB
Tritanopia (blue-blind)
#C04C71
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b940ae;
/* rgb */ color: rgb(185, 64, 174);
/* oklch */ color: oklch(58.0% 0.199 331.6);
Tailwind
colors: {
  custom: {
    50: '#d17ec6',
    500: '#b940ae',
    950: '#000000',
  },
}
SCSS
$custom: #b940ae;
$custom-light: #d17ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#b940ae",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 305.455,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58035,
    "c": 0.19897,
    "h": 331.6
  },
  "luminance": 0.17037
}

Semantic roles & 50–950 ramp

primary
#B940AE
secondary
#8EC793
accent
#D85C50
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #B940AE

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

Preview Lab → · Contrast checker → · Palette generator →

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