#B938BC#B938BC

#B938BC is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.0% C 0.220 H 327.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#B938BC
RGBrgb(185, 56, 188)
HSLhsl(299, 54%, 48%)
HSVhsv(299, 70%, 74%)
CMYKcmyk(1.6%, 70.2%, 0%, 26.3%)
CIE-LABlab(47.98, 66.55, -43.17)
CIE-LCHlch(47.98, 79.32, 327.03°)
OKLaboklab(58.03% 0.1842 -0.1197)
OKLCHoklch(58.03% 0.22 327)
XYZxyz(30.4984, 16.7756, 49.1988)
Luminance0.1677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B938BC #3BBC38
analogous
#7738BC #B938BC #BC387D
triadic
#B938BC #BCB938 #38BCB9
tetradic
#B938BC #BC7738 #3BBC38 #387DBC
square
#B938BC #BC7738 #3BBC38 #387DBC
split-complementary
#B938BC #7DBC38 #38BC77
monochromatic
#5C1C5E #8B2A8D #B938BC #CD61D0 #DC90DE

Accessibility & contrast

On white

4.82
#B938BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#B938BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B938BC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B938BC#FFFFFF#000000##FFFFFF
##B938BC1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D67C0
Deuteranopia (green-blind)
#5878B9
Tritanopia (blue-blind)
#BE4C76
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b938bc;
/* rgb */ color: rgb(185, 56, 188);
/* oklch */ color: oklch(58.0% 0.220 327.0);
Tailwind
colors: {
  custom: {
    50: '#d27bd1',
    500: '#b938bc',
    950: '#000000',
  },
}
SCSS
$custom: #b938bc;
$custom-light: #d27bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#b938bc",
  "rgb": {
    "r": 185,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 298.636,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5803,
    "c": 0.21972,
    "h": 327
  },
  "luminance": 0.16773
}

Semantic roles & 50–950 ramp

primary
#B938BC
secondary
#88C987
accent
#DD4A4E
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #B938BC

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

Preview Lab → · Contrast checker → · Palette generator →

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