#B431B5#B431B5

#B431B5 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.3% C 0.220 H 327.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#B431B5
RGBrgb(180, 49, 181)
HSLhsl(300, 57%, 45%)
HSVhsv(300, 73%, 71%)
CMYKcmyk(0.6%, 72.9%, 0%, 29%)
CIE-LABlab(45.96, 66.66, -42.33)
CIE-LCHlch(45.96, 78.96, 327.59°)
OKLaboklab(56.31% 0.1855 -0.1173)
OKLCHoklch(56.31% 0.22 327.7)
XYZxyz(28.2608, 15.2381, 45.1599)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B431B5 #32B531
analogous
#7231B5 #B431B5 #B53174
triadic
#B431B5 #B5B431 #31B5B4
tetradic
#B431B5 #B57231 #32B531 #3174B5
square
#B431B5 #B57231 #32B531 #3174B5
split-complementary
#B431B5 #74B531 #31B572
monochromatic
#541755 #842485 #B431B5 #CF53D0 #DD83DD

Accessibility & contrast

On white

5.19
#B431B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#B431B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B431B5
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B431B5#FFFFFF#000000##FFFFFF
##B431B51.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1462B9
Deuteranopia (green-blind)
#5473B2
Tritanopia (blue-blind)
#B94671
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b431b5;
/* rgb */ color: rgb(180, 49, 181);
/* oklch */ color: oklch(56.3% 0.220 327.7);
Tailwind
colors: {
  custom: {
    50: '#ce77cc',
    500: '#b431b5',
    950: '#000000',
  },
}
SCSS
$custom: #b431b5;
$custom-light: #ce77cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b431b5",
  "rgb": {
    "r": 180,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 299.545,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56305,
    "c": 0.21951,
    "h": 327.7
  },
  "luminance": 0.15236
}

Semantic roles & 50–950 ramp

primary
#B431B5
secondary
#7CC77B
accent
#E14748
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B431B5

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

Preview Lab → · Contrast checker → · Palette generator →

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