#B940AA#B940AA

#B940AA is a mid, vivid purple. Relative luminance 0.169; OKLCH L 57.8% C 0.196 H 333.1°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#B940AA
RGBrgb(185, 64, 170)
HSLhsl(307, 49%, 49%)
HSVhsv(307, 65%, 73%)
CMYKcmyk(0%, 65.4%, 8.1%, 27.5%)
CIE-LABlab(48.12, 60.62, -32.40)
CIE-LCHlch(48.12, 68.73, 331.88°)
OKLaboklab(57.83% 0.1747 -0.0887)
OKLCHoklch(57.83% 0.196 333.1)
XYZxyz(29.0968, 16.8856, 39.7492)
Luminance0.1688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940AA #40B94F
analogous
#8C40B9 #B940AA #B9406E
triadic
#B940AA #AAB940 #40AAB9
tetradic
#B940AA #B98C40 #40B94F #406EB9
square
#B940AA #B98C40 #40B94F #406EB9
split-complementary
#B940AA #6EB940 #40B98C
monochromatic
#5E2156 #8C3080 #B940AA #CC6BC0 #DB98D3

Accessibility & contrast

On white

4.80
#B940AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#B940AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B940AA
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940AA#FFFFFF#000000##FFFFFF
##B940AA1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C67AD
Deuteranopia (green-blind)
#6578A7
Tritanopia (blue-blind)
#C14A6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b940aa;
/* rgb */ color: rgb(185, 64, 170);
/* oklch */ color: oklch(57.8% 0.196 333.1);
Tailwind
colors: {
  custom: {
    50: '#d17ec3',
    500: '#b940aa',
    950: '#000000',
  },
}
SCSS
$custom: #b940aa;
$custom-light: #d17ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#b940aa",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 307.438,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57831,
    "c": 0.19589,
    "h": 333.1
  },
  "luminance": 0.16883
}

Semantic roles & 50–950 ramp

primary
#B940AA
secondary
#8EC795
accent
#D86150
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #B940AA

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

Preview Lab → · Contrast checker → · Palette generator →

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