#B940BD#B940BD

#B940BD is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.8% C 0.211 H 326.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#B940BD
RGBrgb(185, 64, 189)
HSLhsl(298, 49%, 50%)
HSVhsv(298, 66%, 74%)
CMYKcmyk(2.1%, 66.1%, 0%, 25.9%)
CIE-LABlab(49.08, 63.76, -42.00)
CIE-LCHlch(49.08, 76.35, 326.63°)
OKLaboklab(58.84% 0.176 -0.1164)
OKLCHoklch(58.84% 0.211 326.5)
XYZxyz(31.0257, 17.6572, 49.9083)
Luminance0.1766 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940BD #44BD40
analogous
#7B40BD #B940BD #BD4083
triadic
#B940BD #BDB940 #40BDB9
tetradic
#B940BD #BD7B40 #44BD40 #4083BD
square
#B940BD #BD7B40 #44BD40 #4083BD
split-complementary
#B940BD #83BD40 #40BD7B
monochromatic
#5F2162 #8C318F #B940BD #CA6DCD #DB9ADD

Accessibility & contrast

On white

4.63
#B940BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#B940BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B940BD
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940BD#FFFFFF#000000##FFFFFF
##B940BD1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6BC1
Deuteranopia (green-blind)
#5C7ABA
Tritanopia (blue-blind)
#BE5279
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b940bd;
/* rgb */ color: rgb(185, 64, 189);
/* oklch */ color: oklch(58.8% 0.211 326.5);
Tailwind
colors: {
  custom: {
    50: '#d17ed1',
    500: '#b940bd',
    950: '#000000',
  },
}
SCSS
$custom: #b940bd;
$custom-light: #d17ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#b940bd",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 298.08,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5884,
    "c": 0.21096,
    "h": 326.5
  },
  "luminance": 0.17655
}

Semantic roles & 50–950 ramp

primary
#B940BD
secondary
#92C990
accent
#D94F53
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B940BD

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

Preview Lab → · Contrast checker → · Palette generator →

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