#B031B7#B031B7

#B031B7 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.219 H 325.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#B031B7
RGBrgb(176, 49, 183)
HSLhsl(297, 58%, 45%)
HSVhsv(297, 73%, 72%)
CMYKcmyk(3.8%, 73.2%, 0%, 28.2%)
CIE-LABlab(45.42, 66.14, -44.39)
CIE-LCHlch(45.42, 79.65, 326.13°)
OKLaboklab(55.83% 0.1812 -0.1234)
OKLCHoklch(55.83% 0.219 325.7)
XYZxyz(27.5495, 14.8475, 46.2054)
Luminance0.1485 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B031B7 #38B731
analogous
#6D31B7 #B031B7 #B7317B
triadic
#B031B7 #B7B031 #31B7B0
tetradic
#B031B7 #B76D31 #38B731 #317BB7
square
#B031B7 #B76D31 #38B731 #317BB7
split-complementary
#B031B7 #7BB731 #31B76D
monochromatic
#531756 #822487 #B031B7 #CB54D1 #D984DE

Accessibility & contrast

On white

5.29
#B031B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B031B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B031B7
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B031B7#FFFFFF#000000##FFFFFF
##B031B71.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0562BB
Deuteranopia (green-blind)
#4F71B4
Tritanopia (blue-blind)
#B44872
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b031b7;
/* rgb */ color: rgb(176, 49, 183);
/* oklch */ color: oklch(55.8% 0.219 325.7);
Tailwind
colors: {
  custom: {
    50: '#cb76cd',
    500: '#b031b7',
    950: '#000000',
  },
}
SCSS
$custom: #b031b7;
$custom-light: #cb76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b031b7",
  "rgb": {
    "r": 176,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 296.866,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55834,
    "c": 0.21922,
    "h": 325.7
  },
  "luminance": 0.14846
}

Semantic roles & 50–950 ramp

primary
#B031B7
secondary
#80C87C
accent
#E1474F
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B031B7

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

Preview Lab → · Contrast checker → · Palette generator →

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