#B931B2#B931B2

#B931B2 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.9% C 0.220 H 330.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#B931B2
RGBrgb(185, 49, 178)
HSLhsl(303, 58%, 46%)
HSVhsv(303, 74%, 73%)
CMYKcmyk(0%, 73.5%, 3.8%, 27.5%)
CIE-LABlab(46.61, 67.26, -39.47)
CIE-LCHlch(46.61, 77.99, 329.60°)
OKLaboklab(56.88% 0.1908 -0.1089)
OKLCHoklch(56.88% 0.22 330.3)
XYZxyz(29.1417, 15.7275, 43.6117)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B931B2 #31B938
analogous
#7C31B9 #B931B2 #B9316E
triadic
#B931B2 #B2B931 #31B2B9
tetradic
#B931B2 #B97C31 #31B938 #316EB9
square
#B931B2 #B97C31 #31B938 #316EB9
split-complementary
#B931B2 #6EB931 #31B97C
monochromatic
#581755 #892483 #B931B2 #D255CC #DF86DA

Accessibility & contrast

On white

5.07
#B931B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#B931B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B931B2
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B931B2#FFFFFF#000000##FFFFFF
##B931B21.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2163B6
Deuteranopia (green-blind)
#5A75AF
Tritanopia (blue-blind)
#C0436F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b931b2;
/* rgb */ color: rgb(185, 49, 178);
/* oklch */ color: oklch(56.9% 0.220 330.3);
Tailwind
colors: {
  custom: {
    50: '#d277c9',
    500: '#b931b2',
    950: '#000000',
  },
}
SCSS
$custom: #b931b2;
$custom-light: #d277c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b931b2",
  "rgb": {
    "r": 185,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 303.088,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5688,
    "c": 0.21967,
    "h": 330.3
  },
  "luminance": 0.15725
}

Semantic roles & 50–950 ramp

primary
#B931B2
secondary
#7DC881
accent
#E14E46
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #B931B2

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

Preview Lab → · Contrast checker → · Palette generator →

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