#B940A2#B940A2

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

Color values

HEX#B940A2
RGBrgb(185, 64, 162)
HSLhsl(311, 49%, 49%)
HSVhsv(311, 65%, 73%)
CMYKcmyk(0%, 65.4%, 12.4%, 27.5%)
CIE-LABlab(47.74, 59.37, -28.25)
CIE-LCHlch(47.74, 65.75, 334.56°)
OKLaboklab(57.44% 0.1737 -0.0768)
OKLCHoklch(57.44% 0.19 336.1)
XYZxyz(28.3629, 16.5921, 35.8842)
Luminance0.1659 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940A2 #40B957
analogous
#9440B9 #B940A2 #B94066
triadic
#B940A2 #A2B940 #40A2B9
tetradic
#B940A2 #B99440 #40B957 #4066B9
square
#B940A2 #B99440 #40B957 #4066B9
split-complementary
#B940A2 #66B940 #40B994
monochromatic
#5E2152 #8C307A #B940A2 #CC6BB9 #DB98CF

Accessibility & contrast

On white

4.86
#B940A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#B940A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B940A2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940A2#FFFFFF#000000##FFFFFF
##B940A21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4266A5
Deuteranopia (green-blind)
#69789F
Tritanopia (blue-blind)
#C2476B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b940a2;
/* rgb */ color: rgb(185, 64, 162);
/* oklch */ color: oklch(57.4% 0.190 336.1);
Tailwind
colors: {
  custom: {
    50: '#d17ebe',
    500: '#b940a2',
    950: '#000000',
  },
}
SCSS
$custom: #b940a2;
$custom-light: #d17ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#b940a2",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 311.405,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57438,
    "c": 0.18991,
    "h": 336.1
  },
  "luminance": 0.1659
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B940A2

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

Preview Lab → · Contrast checker → · Palette generator →

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