#B940AF#B940AF

#B940AF is a mid, vivid purple. Relative luminance 0.171; OKLCH L 58.1% C 0.200 H 331.3°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B940AF
RGBrgb(185, 64, 175)
HSLhsl(305, 49%, 49%)
HSVhsv(305, 65%, 73%)
CMYKcmyk(0%, 65.4%, 5.4%, 27.5%)
CIE-LABlab(48.36, 61.42, -34.96)
CIE-LCHlch(48.36, 70.67, 330.36°)
OKLaboklab(58.09% 0.1752 -0.096)
OKLCHoklch(58.09% 0.2 331.3)
XYZxyz(29.5788, 17.0784, 42.2877)
Luminance0.1708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940AF #40B94A
analogous
#8740B9 #B940AF #B94073
triadic
#B940AF #AFB940 #40AFB9
tetradic
#B940AF #B98740 #40B94A #4073B9
square
#B940AF #B98740 #40B94A #4073B9
split-complementary
#B940AF #73B940 #40B987
monochromatic
#5E2159 #8C3084 #B940AF #CC6BC4 #DB98D6

Accessibility & contrast

On white

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

On black

4.42
#B940AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B940AF#FFFFFF#000000##FFFFFF
##B940AF1.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3868B2
Deuteranopia (green-blind)
#6379AC
Tritanopia (blue-blind)
#C04C72
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b940af;
/* rgb */ color: rgb(185, 64, 175);
/* oklch */ color: oklch(58.1% 0.200 331.3);
Tailwind
colors: {
  custom: {
    50: '#d17ec7',
    500: '#b940af',
    950: '#000000',
  },
}
SCSS
$custom: #b940af;
$custom-light: #d17ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#b940af",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 304.959,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58087,
    "c": 0.19975,
    "h": 331.3
  },
  "luminance": 0.17076
}

Semantic roles & 50–950 ramp

primary
#B940AF
secondary
#8EC792
accent
#D85B50
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #B940AF

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

Preview Lab → · Contrast checker → · Palette generator →

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