#B431A8#B431A8

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

Color values

HEX#B431A8
RGBrgb(180, 49, 168)
HSLhsl(305, 57%, 45%)
HSVhsv(305, 73%, 71%)
CMYKcmyk(0%, 72.8%, 6.7%, 29.4%)
CIE-LABlab(45.26, 64.58, -35.75)
CIE-LCHlch(45.26, 73.82, 331.03°)
OKLaboklab(55.58% 0.1853 -0.0983)
OKLCHoklch(55.58% 0.21 332)
XYZxyz(26.9886, 14.7293, 38.4598)
Luminance0.1473 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B431A8 #31B43D
analogous
#7E31B4 #B431A8 #B43167
triadic
#B431A8 #A8B431 #31A8B4
tetradic
#B431A8 #B47E31 #31B43D #3167B4
square
#B431A8 #B47E31 #31B43D #3167B4
split-complementary
#B431A8 #67B431 #31B47E
monochromatic
#54174E #84247B #B431A8 #D052C4 #DD82D5

Accessibility & contrast

On white

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

On black

3.95
#B431A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B431A8#FFFFFF#000000##FFFFFF
##B431A81.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285FAB
Deuteranopia (green-blind)
#5B72A5
Tritanopia (blue-blind)
#BC4069
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b431a8;
/* rgb */ color: rgb(180, 49, 168);
/* oklch */ color: oklch(55.6% 0.210 332.0);
Tailwind
colors: {
  custom: {
    50: '#ce76c2',
    500: '#b431a8',
    950: '#000000',
  },
}
SCSS
$custom: #b431a8;
$custom-light: #ce76c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b431a8",
  "rgb": {
    "r": 180,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 305.496,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55579,
    "c": 0.20972,
    "h": 332
  },
  "luminance": 0.14727
}

Semantic roles & 50–950 ramp

primary
#B431A8
secondary
#7BC681
accent
#E05547
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B431A8

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

Preview Lab → · Contrast checker → · Palette generator →

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