#B031B8#B031B8

#B031B8 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.9% C 0.220 H 325.4°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B031B8
RGBrgb(176, 49, 184)
HSLhsl(296, 58%, 46%)
HSVhsv(296, 73%, 72%)
CMYKcmyk(4.3%, 73.4%, 0%, 27.8%)
CIE-LABlab(45.48, 66.31, -44.88)
CIE-LCHlch(45.48, 80.07, 325.91°)
OKLaboklab(55.89% 0.1811 -0.1249)
OKLCHoklch(55.89% 0.22 325.4)
XYZxyz(27.6539, 14.8892, 46.7555)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B031B8 #39B831
analogous
#6C31B8 #B031B8 #B8317D
triadic
#B031B8 #B8B031 #31B8B0
tetradic
#B031B8 #B86C31 #39B831 #317DB8
square
#B031B8 #B86C31 #39B831 #317DB8
split-complementary
#B031B8 #7DB831 #31B86C
monochromatic
#541757 #822488 #B031B8 #CA55D2 #D985DE

Accessibility & contrast

On white

5.28
#B031B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B031B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B031B8
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B031B8#FFFFFF#000000##FFFFFF
##B031B81.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0162BC
Deuteranopia (green-blind)
#4E71B5
Tritanopia (blue-blind)
#B44872
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b031b8;
/* rgb */ color: rgb(176, 49, 184);
/* oklch */ color: oklch(55.9% 0.220 325.4);
Tailwind
colors: {
  custom: {
    50: '#cb76ce',
    500: '#b031b8',
    950: '#000000',
  },
}
SCSS
$custom: #b031b8;
$custom-light: #cb76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b031b8",
  "rgb": {
    "r": 176,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 296.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55894,
    "c": 0.22,
    "h": 325.4
  },
  "luminance": 0.14887
}

Semantic roles & 50–950 ramp

primary
#B031B8
secondary
#81C87D
accent
#E14750
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B031B8

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

Preview Lab → · Contrast checker → · Palette generator →

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