#B940BC#B940BC

#B940BC is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.8% C 0.210 H 326.8°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B940BC
RGBrgb(185, 64, 188)
HSLhsl(299, 49%, 49%)
HSVhsv(299, 66%, 74%)
CMYKcmyk(1.6%, 66%, 0%, 26.3%)
CIE-LABlab(49.02, 63.59, -41.51)
CIE-LCHlch(49.02, 75.94, 326.87°)
OKLaboklab(58.78% 0.1759 -0.1149)
OKLCHoklch(58.78% 0.21 326.8)
XYZxyz(30.9176, 17.6140, 49.3386)
Luminance0.1761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940BC #43BC40
analogous
#7B40BC #B940BC #BC4081
triadic
#B940BC #BCB940 #40BCB9
tetradic
#B940BC #BC7B40 #43BC40 #4081BC
square
#B940BC #BC7B40 #43BC40 #4081BC
split-complementary
#B940BC #81BC40 #40BC7B
monochromatic
#5F2161 #8C308E #B940BC #CB6CCD #DB9ADD

Accessibility & contrast

On white

4.64
#B940BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#B940BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B940BC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940BC#FFFFFF#000000##FFFFFF
##B940BC1.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6BC0
Deuteranopia (green-blind)
#5C7AB9
Tritanopia (blue-blind)
#BE5279
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b940bc;
/* rgb */ color: rgb(185, 64, 188);
/* oklch */ color: oklch(58.8% 0.210 326.8);
Tailwind
colors: {
  custom: {
    50: '#d17ed0',
    500: '#b940bc',
    950: '#000000',
  },
}
SCSS
$custom: #b940bc;
$custom-light: #d17ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#b940bc",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 298.548,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.58784,
    "c": 0.21015,
    "h": 326.8
  },
  "luminance": 0.17612
}

Semantic roles & 50–950 ramp

primary
#B940BC
secondary
#91C98F
accent
#D94F52
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B940BC

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

Preview Lab → · Contrast checker → · Palette generator →

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