#B031BA#B031BA

#B031BA is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.222 H 324.8°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#B031BA
RGBrgb(176, 49, 186)
HSLhsl(296, 58%, 46%)
HSVhsv(296, 74%, 73%)
CMYKcmyk(5.4%, 73.7%, 0%, 27.1%)
CIE-LABlab(45.60, 66.65, -45.87)
CIE-LCHlch(45.60, 80.91, 325.46°)
OKLaboklab(56.01% 0.181 -0.1278)
OKLCHoklch(56.01% 0.222 324.8)
XYZxyz(27.8650, 14.9737, 47.8674)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B031BA #3BBA31
analogous
#6B31BA #B031BA #BA317F
triadic
#B031BA #BAB031 #31BAB0
tetradic
#B031BA #BA6B31 #3BBA31 #317FBA
square
#B031BA #BA6B31 #3BBA31 #317FBA
split-complementary
#B031BA #7FBA31 #31BA6B
monochromatic
#541759 #82248A #B031BA #C956D2 #D986DF

Accessibility & contrast

On white

5.26
#B031BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B031BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B031BA
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B031BA#FFFFFF#000000##FFFFFF
##B031BA1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#4D71B7
Tritanopia (blue-blind)
#B44973
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b031ba;
/* rgb */ color: rgb(176, 49, 186);
/* oklch */ color: oklch(56.0% 0.222 324.8);
Tailwind
colors: {
  custom: {
    50: '#cb76cf',
    500: '#b031ba',
    950: '#000000',
  },
}
SCSS
$custom: #b031ba;
$custom-light: #cb76cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b031ba",
  "rgb": {
    "r": 176,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 295.62,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56014,
    "c": 0.22159,
    "h": 324.8
  },
  "luminance": 0.14972
}

Semantic roles & 50–950 ramp

primary
#B031BA
secondary
#83C97E
accent
#E24652
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B031BA

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

Preview Lab → · Contrast checker → · Palette generator →

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