#B940AD#B940AD

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

Color values

HEX#B940AD
RGBrgb(185, 64, 173)
HSLhsl(306, 49%, 49%)
HSVhsv(306, 65%, 73%)
CMYKcmyk(0%, 65.4%, 6.5%, 27.5%)
CIE-LABlab(48.26, 61.10, -33.94)
CIE-LCHlch(48.26, 69.89, 330.95°)
OKLaboklab(57.98% 0.175 -0.0931)
OKLCHoklch(57.98% 0.198 332)
XYZxyz(29.3838, 17.0005, 41.2609)
Luminance0.1700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940AD #40B94C
analogous
#8940B9 #B940AD #B94071
triadic
#B940AD #ADB940 #40ADB9
tetradic
#B940AD #B98940 #40B94C #4071B9
square
#B940AD #B98940 #40B94C #4071B9
split-complementary
#B940AD #71B940 #40B989
monochromatic
#5E2158 #8C3082 #B940AD #CC6BC2 #DB98D5

Accessibility & contrast

On white

4.77
#B940AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#B940AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B940AD
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940AD#FFFFFF#000000##FFFFFF
##B940AD1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A68B0
Deuteranopia (green-blind)
#6479AA
Tritanopia (blue-blind)
#C14C71
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b940ad;
/* rgb */ color: rgb(185, 64, 173);
/* oklch */ color: oklch(58.0% 0.198 332.0);
Tailwind
colors: {
  custom: {
    50: '#d17ec6',
    500: '#b940ad',
    950: '#000000',
  },
}
SCSS
$custom: #b940ad;
$custom-light: #d17ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#b940ad",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 305.95,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57984,
    "c": 0.19819,
    "h": 332
  },
  "luminance": 0.16998
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B940AD

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

Preview Lab → · Contrast checker → · Palette generator →

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