#B940BF#B940BF

#B940BF is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.0% C 0.213 H 325.9°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B940BF
RGBrgb(185, 64, 191)
HSLhsl(297, 50%, 50%)
HSVhsv(297, 66%, 75%)
CMYKcmyk(3.1%, 66.5%, 0%, 25.1%)
CIE-LABlab(49.19, 64.11, -42.99)
CIE-LCHlch(49.19, 77.19, 326.15°)
OKLaboklab(58.95% 0.176 -0.1193)
OKLCHoklch(58.95% 0.213 325.9)
XYZxyz(31.2443, 17.7447, 51.0595)
Luminance0.1774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940BF #46BF40
analogous
#7940BF #B940BF #BF4086
triadic
#B940BF #BFB940 #40BFB9
tetradic
#B940BF #BF7940 #46BF40 #4086BF
square
#B940BF #BF7940 #46BF40 #4086BF
split-complementary
#B940BF #86BF40 #40BF79
monochromatic
#602163 #8D3191 #B940BF #CA6ECE #DB9CDE

Accessibility & contrast

On white

4.62
#B940BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#B940BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B940BF
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940BF#FFFFFF#000000##FFFFFF
##B940BF1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286BC3
Deuteranopia (green-blind)
#5B7ABC
Tritanopia (blue-blind)
#BE537A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b940bf;
/* rgb */ color: rgb(185, 64, 191);
/* oklch */ color: oklch(59.0% 0.213 325.9);
Tailwind
colors: {
  custom: {
    50: '#d17ed3',
    500: '#b940bf',
    950: '#000000',
  },
}
SCSS
$custom: #b940bf;
$custom-light: #d17ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#b940bf",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 297.165,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.58952,
    "c": 0.21261,
    "h": 325.9
  },
  "luminance": 0.17743
}

Semantic roles & 50–950 ramp

primary
#B940BF
secondary
#94CA91
accent
#D94E55
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B940BF

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

Preview Lab → · Contrast checker → · Palette generator →

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