#B942BD#B942BD

#B942BD is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.0% C 0.208 H 326.5°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#B942BD
RGBrgb(185, 66, 189)
HSLhsl(298, 48%, 50%)
HSVhsv(298, 65%, 74%)
CMYKcmyk(2.1%, 65.1%, 0%, 25.9%)
CIE-LABlab(49.36, 62.98, -41.56)
CIE-LCHlch(49.36, 75.45, 326.58°)
OKLaboklab(59.04% 0.1738 -0.1151)
OKLCHoklch(59.04% 0.208 326.5)
XYZxyz(31.1405, 17.8868, 49.9465)
Luminance0.1789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B942BD #46BD42
analogous
#7C42BD #B942BD #BD4283
triadic
#B942BD #BDB942 #42BDB9
tetradic
#B942BD #BD7C42 #46BD42 #4283BD
square
#B942BD #BD7C42 #46BD42 #4283BD
split-complementary
#B942BD #83BD42 #42BD7C
monochromatic
#602262 #8D3290 #B942BD #CA6FCD #DB9DDD

Accessibility & contrast

On white

4.59
#B942BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#B942BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B942BD
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B942BD#FFFFFF#000000##FFFFFF
##B942BD1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6CC1
Deuteranopia (green-blind)
#5D7BBA
Tritanopia (blue-blind)
#BE547A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b942bd;
/* rgb */ color: rgb(185, 66, 189);
/* oklch */ color: oklch(59.0% 0.208 326.5);
Tailwind
colors: {
  custom: {
    50: '#d17fd1',
    500: '#b942bd',
    950: '#000000',
  },
}
SCSS
$custom: #b942bd;
$custom-light: #d17fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#b942bd",
  "rgb": {
    "r": 185,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 298.049,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.59043,
    "c": 0.20843,
    "h": 326.5
  },
  "luminance": 0.17885
}

Semantic roles & 50–950 ramp

primary
#B942BD
secondary
#94C992
accent
#D85054
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B942BD

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

Preview Lab → · Contrast checker → · Palette generator →

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