#B942BC#B942BC

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

Color values

HEX#B942BC
RGBrgb(185, 66, 188)
HSLhsl(299, 48%, 50%)
HSVhsv(299, 65%, 74%)
CMYKcmyk(1.6%, 64.9%, 0%, 26.3%)
CIE-LABlab(49.31, 62.80, -41.06)
CIE-LCHlch(49.31, 75.03, 326.82°)
OKLaboklab(58.99% 0.1737 -0.1137)
OKLCHoklch(58.99% 0.208 326.8)
XYZxyz(31.0324, 17.8436, 49.3769)
Luminance0.1784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B942BC #45BC42
analogous
#7C42BC #B942BC #BC4282
triadic
#B942BC #BCB942 #42BCB9
tetradic
#B942BC #BC7C42 #45BC42 #4282BC
square
#B942BC #BC7C42 #45BC42 #4282BC
split-complementary
#B942BC #82BC42 #42BC7C
monochromatic
#602261 #8C328F #B942BC #CA6FCC #DB9CDC

Accessibility & contrast

On white

4.60
#B942BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#B942BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B942BC
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B942BC#FFFFFF#000000##FFFFFF
##B942BC1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6BC0
Deuteranopia (green-blind)
#5D7BB9
Tritanopia (blue-blind)
#BE5379
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b942bc;
/* rgb */ color: rgb(185, 66, 188);
/* oklch */ color: oklch(59.0% 0.208 326.8);
Tailwind
colors: {
  custom: {
    50: '#d17fd0',
    500: '#b942bc',
    950: '#000000',
  },
}
SCSS
$custom: #b942bc;
$custom-light: #d17fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#b942bc",
  "rgb": {
    "r": 185,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 298.525,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58988,
    "c": 0.2076,
    "h": 326.8
  },
  "luminance": 0.17842
}

Semantic roles & 50–950 ramp

primary
#B942BC
secondary
#93C991
accent
#D85054
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B942BC

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

Preview Lab → · Contrast checker → · Palette generator →

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