#B942BB#B942BB

#B942BB is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 58.9% C 0.207 H 327.1°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B942BB
RGBrgb(185, 66, 187)
HSLhsl(299, 48%, 50%)
HSVhsv(299, 65%, 73%)
CMYKcmyk(1.1%, 64.7%, 0%, 26.7%)
CIE-LABlab(49.25, 62.63, -40.56)
CIE-LCHlch(49.25, 74.62, 327.07°)
OKLaboklab(58.93% 0.1737 -0.1122)
OKLCHoklch(58.93% 0.207 327.1)
XYZxyz(30.9249, 17.8006, 48.8111)
Luminance0.1780 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B942BB #44BB42
analogous
#7C42BB #B942BB #BB4281
triadic
#B942BB #BBB942 #42BBB9
tetradic
#B942BB #BB7C42 #44BB42 #4281BB
square
#B942BB #BB7C42 #44BB42 #4281BB
split-complementary
#B942BB #81BB42 #42BB7C
monochromatic
#5F2261 #8C328E #B942BB #CA6ECC #DB9CDC

Accessibility & contrast

On white

4.61
#B942BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#B942BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B942BB
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B942BB#FFFFFF#000000##FFFFFF
##B942BB1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306BBF
Deuteranopia (green-blind)
#5E7AB8
Tritanopia (blue-blind)
#BE5379
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b942bb;
/* rgb */ color: rgb(185, 66, 187);
/* oklch */ color: oklch(58.9% 0.207 327.1);
Tailwind
colors: {
  custom: {
    50: '#d17fd0',
    500: '#b942bb',
    950: '#000000',
  },
}
SCSS
$custom: #b942bb;
$custom-light: #d17fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#b942bb",
  "rgb": {
    "r": 185,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 299.008,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58933,
    "c": 0.20678,
    "h": 327.1
  },
  "luminance": 0.17799
}

Semantic roles & 50–950 ramp

primary
#B942BB
secondary
#92C891
accent
#D75053
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B942BB

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

Preview Lab → · Contrast checker → · Palette generator →

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