#B940AC#B940AC

#B940AC is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.9% C 0.197 H 332.4°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#B940AC
RGBrgb(185, 64, 172)
HSLhsl(306, 49%, 49%)
HSVhsv(306, 65%, 73%)
CMYKcmyk(0%, 65.4%, 7%, 27.5%)
CIE-LABlab(48.21, 60.94, -33.42)
CIE-LCHlch(48.21, 69.50, 331.26°)
OKLaboklab(57.93% 0.1749 -0.0916)
OKLCHoklch(57.93% 0.197 332.4)
XYZxyz(29.2874, 16.9619, 40.7532)
Luminance0.1696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940AC #40B94D
analogous
#8A40B9 #B940AC #B94070
triadic
#B940AC #ACB940 #40ACB9
tetradic
#B940AC #B98A40 #40B94D #4070B9
square
#B940AC #B98A40 #40B94D #4070B9
split-complementary
#B940AC #70B940 #40B98A
monochromatic
#5E2157 #8C3082 #B940AC #CC6BC1 #DB98D4

Accessibility & contrast

On white

4.78
#B940AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#B940AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B940AC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940AC#FFFFFF#000000##FFFFFF
##B940AC1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B67AF
Deuteranopia (green-blind)
#6479A9
Tritanopia (blue-blind)
#C14B70
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b940ac;
/* rgb */ color: rgb(185, 64, 172);
/* oklch */ color: oklch(57.9% 0.197 332.4);
Tailwind
colors: {
  custom: {
    50: '#d17ec5',
    500: '#b940ac',
    950: '#000000',
  },
}
SCSS
$custom: #b940ac;
$custom-light: #d17ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#b940ac",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 306.446,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57933,
    "c": 0.19743,
    "h": 332.4
  },
  "luminance": 0.1696
}

Semantic roles & 50–950 ramp

primary
#B940AC
secondary
#8EC794
accent
#D85E50
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #B940AC

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

Preview Lab → · Contrast checker → · Palette generator →

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