#B931B7#B931B7

#B931B7 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.2% C 0.223 H 328.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#B931B7
RGBrgb(185, 49, 183)
HSLhsl(301, 58%, 46%)
HSVhsv(301, 74%, 73%)
CMYKcmyk(0%, 73.5%, 1.1%, 27.5%)
CIE-LABlab(46.89, 68.06, -41.98)
CIE-LCHlch(46.89, 79.96, 328.33°)
OKLaboklab(57.16% 0.1908 -0.1162)
OKLCHoklch(57.16% 0.223 328.7)
XYZxyz(29.6528, 15.9320, 46.3040)
Luminance0.1593 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B931B7 #31B933
analogous
#7731B9 #B931B7 #B93173
triadic
#B931B7 #B7B931 #31B7B9
tetradic
#B931B7 #B97731 #31B933 #3173B9
square
#B931B7 #B97731 #31B933 #3173B9
split-complementary
#B931B7 #73B931 #31B977
monochromatic
#581757 #892487 #B931B7 #D255D0 #DF86DE

Accessibility & contrast

On white

5.02
#B931B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#B931B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B931B7
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B931B7#FFFFFF#000000##FFFFFF
##B931B71.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1864BB
Deuteranopia (green-blind)
#5875B4
Tritanopia (blue-blind)
#BF4672
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b931b7;
/* rgb */ color: rgb(185, 49, 183);
/* oklch */ color: oklch(57.2% 0.223 328.7);
Tailwind
colors: {
  custom: {
    50: '#d277cd',
    500: '#b931b7',
    950: '#000000',
  },
}
SCSS
$custom: #b931b7;
$custom-light: #d277cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b931b7",
  "rgb": {
    "r": 185,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 300.882,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.57161,
    "c": 0.22341,
    "h": 328.7
  },
  "luminance": 0.1593
}

Semantic roles & 50–950 ramp

primary
#B931B7
secondary
#7DC87F
accent
#E14946
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #B931B7

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

Preview Lab → · Contrast checker → · Palette generator →

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