#B940BB#B940BB

#B940BB is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.7% C 0.209 H 327.2°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#B940BB
RGBrgb(185, 64, 187)
HSLhsl(299, 49%, 49%)
HSVhsv(299, 66%, 73%)
CMYKcmyk(1.1%, 65.8%, 0%, 26.7%)
CIE-LABlab(48.97, 63.42, -41.01)
CIE-LCHlch(48.97, 75.52, 327.11°)
OKLaboklab(58.73% 0.1759 -0.1135)
OKLCHoklch(58.73% 0.209 327.2)
XYZxyz(30.8101, 17.5710, 48.7728)
Luminance0.1757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940BB #42BB40
analogous
#7B40BB #B940BB #BB4080
triadic
#B940BB #BBB940 #40BBB9
tetradic
#B940BB #BB7B40 #42BB40 #4080BB
square
#B940BB #BB7B40 #42BB40 #4080BB
split-complementary
#B940BB #80BB40 #40BB7B
monochromatic
#5F2160 #8C308D #B940BB #CB6CCD #DB99DC

Accessibility & contrast

On white

4.65
#B940BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#B940BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B940BB
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940BB#FFFFFF#000000##FFFFFF
##B940BB1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6ABF
Deuteranopia (green-blind)
#5D7AB8
Tritanopia (blue-blind)
#BE5178
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b940bb;
/* rgb */ color: rgb(185, 64, 187);
/* oklch */ color: oklch(58.7% 0.209 327.2);
Tailwind
colors: {
  custom: {
    50: '#d17ed0',
    500: '#b940bb',
    950: '#000000',
  },
}
SCSS
$custom: #b940bb;
$custom-light: #d17ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#b940bb",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 299.024,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58729,
    "c": 0.20933,
    "h": 327.2
  },
  "luminance": 0.17569
}

Semantic roles & 50–950 ramp

primary
#B940BB
secondary
#90C88F
accent
#D94F51
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B940BB

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

Preview Lab → · Contrast checker → · Palette generator →

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