#B940A1#B940A1

#B940A1 is a mid, vivid pink. Relative luminance 0.166; OKLCH L 57.4% C 0.189 H 336.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#B940A1
RGBrgb(185, 64, 161)
HSLhsl(312, 49%, 49%)
HSVhsv(312, 65%, 73%)
CMYKcmyk(0%, 65.4%, 13%, 27.5%)
CIE-LABlab(47.70, 59.22, -27.73)
CIE-LCHlch(47.70, 65.39, 334.91°)
OKLaboklab(57.39% 0.1736 -0.0753)
OKLCHoklch(57.39% 0.189 336.5)
XYZxyz(28.2744, 16.5567, 35.4179)
Luminance0.1655 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940A1 #40B958
analogous
#9540B9 #B940A1 #B94065
triadic
#B940A1 #A1B940 #40A1B9
tetradic
#B940A1 #B99540 #40B958 #4065B9
square
#B940A1 #B99540 #40B958 #4065B9
split-complementary
#B940A1 #65B940 #40B995
monochromatic
#5E2152 #8C3079 #B940A1 #CC6BB8 #DB98CE

Accessibility & contrast

On white

4.87
#B940A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#B940A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B940A1
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940A1#FFFFFF#000000##FFFFFF
##B940A11.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4265A4
Deuteranopia (green-blind)
#69789E
Tritanopia (blue-blind)
#C2476B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b940a1;
/* rgb */ color: rgb(185, 64, 161);
/* oklch */ color: oklch(57.4% 0.189 336.5);
Tailwind
colors: {
  custom: {
    50: '#d17dbd',
    500: '#b940a1',
    950: '#000000',
  },
}
SCSS
$custom: #b940a1;
$custom-light: #d17dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#b940a1",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 311.901,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5739,
    "c": 0.18918,
    "h": 336.5
  },
  "luminance": 0.16554
}

Semantic roles & 50–950 ramp

primary
#B940A1
secondary
#8EC799
accent
#D86B50
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B940A1

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

Preview Lab → · Contrast checker → · Palette generator →

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