#B431B2#B431B2

#B431B2 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.1% C 0.217 H 328.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B431B2
RGBrgb(180, 49, 178)
HSLhsl(301, 57%, 45%)
HSVhsv(301, 73%, 71%)
CMYKcmyk(0%, 72.8%, 1.1%, 29.4%)
CIE-LABlab(45.79, 66.17, -40.82)
CIE-LCHlch(45.79, 77.75, 328.33°)
OKLaboklab(56.13% 0.1855 -0.113)
OKLCHoklch(56.13% 0.217 328.7)
XYZxyz(27.9563, 15.1163, 43.5562)
Luminance0.1511 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B431B2 #31B433
analogous
#7531B4 #B431B2 #B43171
triadic
#B431B2 #B2B431 #31B2B4
tetradic
#B431B2 #B47531 #31B433 #3171B4
square
#B431B2 #B47531 #31B433 #3171B4
split-complementary
#B431B2 #71B431 #31B475
monochromatic
#541753 #842482 #B431B2 #D052CE #DD82DC

Accessibility & contrast

On white

5.22
#B431B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B431B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B431B2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B431B2#FFFFFF#000000##FFFFFF
##B431B21.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A61B6
Deuteranopia (green-blind)
#5672AF
Tritanopia (blue-blind)
#BA446F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b431b2;
/* rgb */ color: rgb(180, 49, 178);
/* oklch */ color: oklch(56.1% 0.217 328.7);
Tailwind
colors: {
  custom: {
    50: '#ce77c9',
    500: '#b431b2',
    950: '#000000',
  },
}
SCSS
$custom: #b431b2;
$custom-light: #ce77c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b431b2",
  "rgb": {
    "r": 180,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 300.916,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56133,
    "c": 0.21721,
    "h": 328.7
  },
  "luminance": 0.15114
}

Semantic roles & 50–950 ramp

primary
#B431B2
secondary
#7BC67C
accent
#E04A47
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B431B2

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

Preview Lab → · Contrast checker → · Palette generator →

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