#B031A7#B031A7

#B031A7 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.207 H 331.1°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B031A7
RGBrgb(176, 49, 167)
HSLhsl(304, 56%, 44%)
HSVhsv(304, 72%, 69%)
CMYKcmyk(0%, 72.2%, 5.1%, 31%)
CIE-LABlab(44.55, 63.51, -36.33)
CIE-LCHlch(44.55, 73.17, 330.23°)
OKLaboklab(54.92% 0.1811 -0.1001)
OKLCHoklch(54.92% 0.207 331.1)
XYZxyz(25.9778, 14.2188, 37.9280)
Luminance0.1422 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B031A7 #31B03A
analogous
#7A31B0 #B031A7 #B03168
triadic
#B031A7 #A7B031 #31A7B0
tetradic
#B031A7 #B07A31 #31B03A #3168B0
square
#B031A7 #B07A31 #31B03A #3168B0
split-complementary
#B031A7 #68B031 #31B07A
monochromatic
#50164C #80247A #B031A7 #CE50C5 #DC80D5

Accessibility & contrast

On white

5.46
#B031A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#B031A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B031A7
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B031A7#FFFFFF#000000##FFFFFF
##B031A71.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265EAA
Deuteranopia (green-blind)
#5870A4
Tritanopia (blue-blind)
#B74069
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b031a7;
/* rgb */ color: rgb(176, 49, 167);
/* oklch */ color: oklch(54.9% 0.207 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb76c1',
    500: '#b031a7',
    950: '#000000',
  },
}
SCSS
$custom: #b031a7;
$custom-light: #cb76c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b031a7",
  "rgb": {
    "r": 176,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 304.252,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54921,
    "c": 0.20687,
    "h": 331.1
  },
  "luminance": 0.14217
}

Semantic roles & 50–950 ramp

primary
#B031A7
secondary
#78C57E
accent
#E05348
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #B031A7

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

Preview Lab → · Contrast checker → · Palette generator →

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