#B431AC#B431AC

#B431AC is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.8% C 0.213 H 330.7°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B431AC
RGBrgb(180, 49, 172)
HSLhsl(304, 57%, 45%)
HSVhsv(304, 73%, 71%)
CMYKcmyk(0%, 72.8%, 4.4%, 29.4%)
CIE-LABlab(45.47, 65.21, -37.79)
CIE-LCHlch(45.47, 75.37, 329.90°)
OKLaboklab(55.8% 0.1854 -0.1042)
OKLCHoklch(55.8% 0.213 330.7)
XYZxyz(27.3670, 14.8806, 40.4526)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B431AC #31B439
analogous
#7A31B4 #B431AC #B4316B
triadic
#B431AC #ACB431 #31ACB4
tetradic
#B431AC #B47A31 #31B439 #316BB4
square
#B431AC #B47A31 #31B439 #316BB4
split-complementary
#B431AC #6BB431 #31B47A
monochromatic
#541750 #84247E #B431AC #D052C8 #DD82D8

Accessibility & contrast

On white

5.28
#B431AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B431AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B431AC
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B431AC#FFFFFF#000000##FFFFFF
##B431AC1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2460AF
Deuteranopia (green-blind)
#5972A9
Tritanopia (blue-blind)
#BB426C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b431ac;
/* rgb */ color: rgb(180, 49, 172);
/* oklch */ color: oklch(55.8% 0.213 330.7);
Tailwind
colors: {
  custom: {
    50: '#ce76c5',
    500: '#b431ac',
    950: '#000000',
  },
}
SCSS
$custom: #b431ac;
$custom-light: #ce76c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b431ac",
  "rgb": {
    "r": 180,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 303.664,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55797,
    "c": 0.21268,
    "h": 330.7
  },
  "luminance": 0.14878
}

Semantic roles & 50–950 ramp

primary
#B431AC
secondary
#7BC67F
accent
#E05147
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B431AC

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

Preview Lab → · Contrast checker → · Palette generator →

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