#B938BA#B938BA

#B938BA is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.9% C 0.218 H 327.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B938BA
RGBrgb(185, 56, 186)
HSLhsl(300, 54%, 47%)
HSVhsv(300, 70%, 73%)
CMYKcmyk(0.5%, 69.9%, 0%, 27.1%)
CIE-LABlab(47.87, 66.22, -42.17)
CIE-LCHlch(47.87, 78.51, 327.51°)
OKLaboklab(57.92% 0.1842 -0.1168)
OKLCHoklch(57.92% 0.218 327.6)
XYZxyz(30.2843, 16.6899, 48.0713)
Luminance0.1669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B938BA #39BA38
analogous
#7838BA #B938BA #BA387A
triadic
#B938BA #BAB938 #38BAB9
tetradic
#B938BA #BA7838 #39BA38 #387ABA
square
#B938BA #BA7838 #39BA38 #387ABA
split-complementary
#B938BA #7ABA38 #38BA78
monochromatic
#5B1C5C #8A2A8B #B938BA #CE60CF #DD8FDD

Accessibility & contrast

On white

4.84
#B938BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#B938BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B938BA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B938BA#FFFFFF#000000##FFFFFF
##B938BA1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2167BE
Deuteranopia (green-blind)
#5977B7
Tritanopia (blue-blind)
#BF4B75
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b938ba;
/* rgb */ color: rgb(185, 56, 186);
/* oklch */ color: oklch(57.9% 0.218 327.6);
Tailwind
colors: {
  custom: {
    50: '#d27acf',
    500: '#b938ba',
    950: '#000000',
  },
}
SCSS
$custom: #b938ba;
$custom-light: #d27acf;
$custom-dark: #000000;
JSON
{
  "hex": "#b938ba",
  "rgb": {
    "r": 185,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 299.538,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57917,
    "c": 0.21815,
    "h": 327.6
  },
  "luminance": 0.16688
}

Semantic roles & 50–950 ramp

primary
#B938BA
secondary
#86C886
accent
#DD4B4C
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #B938BA

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

Preview Lab → · Contrast checker → · Palette generator →

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