#B431BA#B431BA

#B431BA is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.6% C 0.223 H 326.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#B431BA
RGBrgb(180, 49, 186)
HSLhsl(297, 58%, 46%)
HSVhsv(297, 74%, 73%)
CMYKcmyk(3.2%, 73.7%, 0%, 27.1%)
CIE-LABlab(46.24, 67.49, -44.81)
CIE-LCHlch(46.24, 81.01, 326.42°)
OKLaboklab(56.6% 0.1854 -0.1246)
OKLCHoklch(56.6% 0.223 326.1)
XYZxyz(28.7831, 15.4470, 47.9104)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B431BA #37BA31
analogous
#6F31BA #B431BA #BA317B
triadic
#B431BA #BAB431 #31BAB4
tetradic
#B431BA #BA6F31 #37BA31 #317BBA
square
#B431BA #BA6F31 #37BA31 #317BBA
split-complementary
#B431BA #7BBA31 #31BA6F
monochromatic
#561759 #85248A #B431BA #CD56D2 #DB86DF

Accessibility & contrast

On white

5.14
#B431BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#B431BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B431BA
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B431BA#FFFFFF#000000##FFFFFF
##B431BA1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0463BE
Deuteranopia (green-blind)
#5173B7
Tritanopia (blue-blind)
#B94873
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b431ba;
/* rgb */ color: rgb(180, 49, 186);
/* oklch */ color: oklch(56.6% 0.223 326.1);
Tailwind
colors: {
  custom: {
    50: '#ce77cf',
    500: '#b431ba',
    950: '#000000',
  },
}
SCSS
$custom: #b431ba;
$custom-light: #ce77cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b431ba",
  "rgb": {
    "r": 180,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 297.372,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56597,
    "c": 0.22338,
    "h": 326.1
  },
  "luminance": 0.15445
}

Semantic roles & 50–950 ramp

primary
#B431BA
secondary
#81C97E
accent
#E2464D
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B431BA

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

Preview Lab → · Contrast checker → · Palette generator →

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