#B431A2#B431A2

#B431A2 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.3% C 0.205 H 334.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B431A2
RGBrgb(180, 49, 162)
HSLhsl(308, 57%, 45%)
HSVhsv(308, 73%, 71%)
CMYKcmyk(0%, 72.8%, 10%, 29.4%)
CIE-LABlab(44.96, 63.66, -32.66)
CIE-LCHlch(44.96, 71.55, 332.84°)
OKLaboklab(55.26% 0.1849 -0.0894)
OKLCHoklch(55.26% 0.205 334.2)
XYZxyz(26.4425, 14.5108, 35.5836)
Luminance0.1451 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B431A2 #31B443
analogous
#8431B4 #B431A2 #B43161
triadic
#B431A2 #A2B431 #31A2B4
tetradic
#B431A2 #B48431 #31B443 #3161B4
square
#B431A2 #B48431 #31B443 #3161B4
split-complementary
#B431A2 #61B431 #31B484
monochromatic
#54174B #842477 #B431A2 #D052BF #DD82D1

Accessibility & contrast

On white

5.38
#B431A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#B431A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B431A2
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B431A2#FFFFFF#000000##FFFFFF
##B431A21.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5EA5
Deuteranopia (green-blind)
#5E719F
Tritanopia (blue-blind)
#BD3D66
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b431a2;
/* rgb */ color: rgb(180, 49, 162);
/* oklch */ color: oklch(55.3% 0.205 334.2);
Tailwind
colors: {
  custom: {
    50: '#ce76be',
    500: '#b431a2',
    950: '#000000',
  },
}
SCSS
$custom: #b431a2;
$custom-light: #ce76be;
$custom-dark: #000000;
JSON
{
  "hex": "#b431a2",
  "rgb": {
    "r": 180,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 308.244,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55262,
    "c": 0.20535,
    "h": 334.2
  },
  "luminance": 0.14509
}

Semantic roles & 50–950 ramp

primary
#B431A2
secondary
#7BC685
accent
#E05C47
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B431A2

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

Preview Lab → · Contrast checker → · Palette generator →

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