#B031B4#B031B4

#B031B4 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.7% C 0.217 H 326.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B031B4
RGBrgb(176, 49, 180)
HSLhsl(298, 57%, 45%)
HSVhsv(298, 73%, 71%)
CMYKcmyk(2.2%, 72.8%, 0%, 29.4%)
CIE-LABlab(45.25, 65.63, -42.90)
CIE-LCHlch(45.25, 78.41, 326.83°)
OKLaboklab(55.66% 0.1812 -0.1191)
OKLCHoklch(55.66% 0.217 326.7)
XYZxyz(27.2406, 14.7239, 44.5784)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B031B4 #35B431
analogous
#6F31B4 #B031B4 #B43176
triadic
#B031B4 #B4B031 #31B4B0
tetradic
#B031B4 #B46F31 #35B431 #3176B4
square
#B031B4 #B46F31 #35B431 #3176B4
split-complementary
#B031B4 #76B431 #31B46F
monochromatic
#521754 #812484 #B031B4 #CC52D0 #DA82DD

Accessibility & contrast

On white

5.32
#B031B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B031B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B031B4
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B031B4#FFFFFF#000000##FFFFFF
##B031B41.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F61B8
Deuteranopia (green-blind)
#5171B1
Tritanopia (blue-blind)
#B54670
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b031b4;
/* rgb */ color: rgb(176, 49, 180);
/* oklch */ color: oklch(55.7% 0.217 326.7);
Tailwind
colors: {
  custom: {
    50: '#cb76cb',
    500: '#b031b4',
    950: '#000000',
  },
}
SCSS
$custom: #b031b4;
$custom-light: #cb76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b031b4",
  "rgb": {
    "r": 176,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 298.168,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55657,
    "c": 0.21686,
    "h": 326.7
  },
  "luminance": 0.14722
}

Semantic roles & 50–950 ramp

primary
#B031B4
secondary
#7DC67B
accent
#E0474C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #B031B4

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

Preview Lab → · Contrast checker → · Palette generator →

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