#B031A8#B031A8

#B031A8 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.0% C 0.208 H 330.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#B031A8
RGBrgb(176, 49, 168)
HSLhsl(304, 56%, 44%)
HSVhsv(304, 72%, 69%)
CMYKcmyk(0%, 72.2%, 4.5%, 31%)
CIE-LABlab(44.60, 63.67, -36.85)
CIE-LCHlch(44.60, 73.56, 329.94°)
OKLaboklab(54.97% 0.1811 -0.1015)
OKLCHoklch(54.97% 0.208 330.7)
XYZxyz(26.0706, 14.2559, 38.4168)
Luminance0.1425 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B031A8 #31B039
analogous
#7931B0 #B031A8 #B03168
triadic
#B031A8 #A8B031 #31A8B0
tetradic
#B031A8 #B07931 #31B039 #3168B0
square
#B031A8 #B07931 #31B039 #3168B0
split-complementary
#B031A8 #68B031 #31B079
monochromatic
#50164D #80247A #B031A8 #CE50C6 #DC80D6

Accessibility & contrast

On white

5.45
#B031A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#B031A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B031A8
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B031A8#FFFFFF#000000##FFFFFF
##B031A81.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255EAB
Deuteranopia (green-blind)
#5870A5
Tritanopia (blue-blind)
#B74169
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b031a8;
/* rgb */ color: rgb(176, 49, 168);
/* oklch */ color: oklch(55.0% 0.208 330.7);
Tailwind
colors: {
  custom: {
    50: '#cb76c2',
    500: '#b031a8',
    950: '#000000',
  },
}
SCSS
$custom: #b031a8;
$custom-light: #cb76c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b031a8",
  "rgb": {
    "r": 176,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 303.78,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54975,
    "c": 0.20762,
    "h": 330.7
  },
  "luminance": 0.14254
}

Semantic roles & 50–950 ramp

primary
#B031A8
secondary
#78C57D
accent
#E05248
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140912
muted
#827B81

Preview Lab

Preview with #B031A8

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

Preview Lab → · Contrast checker → · Palette generator →

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