#B031A2#B031A2

#B031A2 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.7% C 0.203 H 332.9°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#B031A2
RGBrgb(176, 49, 162)
HSLhsl(307, 56%, 44%)
HSVhsv(307, 72%, 69%)
CMYKcmyk(0%, 72.2%, 8%, 31%)
CIE-LABlab(44.29, 62.73, -33.76)
CIE-LCHlch(44.29, 71.24, 331.71°)
OKLaboklab(54.65% 0.1808 -0.0926)
OKLCHoklch(54.65% 0.203 332.9)
XYZxyz(25.5245, 14.0375, 35.5406)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B031A2 #31B03F
analogous
#7F31B0 #B031A2 #B03163
triadic
#B031A2 #A2B031 #31A2B0
tetradic
#B031A2 #B07F31 #31B03F #3163B0
square
#B031A2 #B07F31 #31B03F #3163B0
split-complementary
#B031A2 #63B031 #31B07F
monochromatic
#50164A #802476 #B031A2 #CE50C0 #DC80D1

Accessibility & contrast

On white

5.52
#B031A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#B031A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B031A2
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B031A2#FFFFFF#000000##FFFFFF
##B031A21.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5DA5
Deuteranopia (green-blind)
#5B6F9F
Tritanopia (blue-blind)
#B83E66
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b031a2;
/* rgb */ color: rgb(176, 49, 162);
/* oklch */ color: oklch(54.7% 0.203 332.9);
Tailwind
colors: {
  custom: {
    50: '#cb75be',
    500: '#b031a2',
    950: '#000000',
  },
}
SCSS
$custom: #b031a2;
$custom-light: #cb75be;
$custom-dark: #000000;
JSON
{
  "hex": "#b031a2",
  "rgb": {
    "r": 176,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 306.614,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54651,
    "c": 0.20315,
    "h": 332.9
  },
  "luminance": 0.14035
}

Semantic roles & 50–950 ramp

primary
#B031A2
secondary
#78C581
accent
#E05948
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #B031A2

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

Preview Lab → · Contrast checker → · Palette generator →

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