#B431B8#B431B8

#B431B8 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.5% C 0.222 H 326.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B431B8
RGBrgb(180, 49, 184)
HSLhsl(298, 58%, 46%)
HSVhsv(298, 73%, 72%)
CMYKcmyk(2.2%, 73.4%, 0%, 27.8%)
CIE-LABlab(46.13, 67.15, -43.82)
CIE-LCHlch(46.13, 80.19, 326.88°)
OKLaboklab(56.48% 0.1855 -0.1217)
OKLCHoklch(56.48% 0.222 326.7)
XYZxyz(28.5719, 15.3626, 46.7985)
Luminance0.1536 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B431B8 #35B831
analogous
#7031B8 #B431B8 #B83178
triadic
#B431B8 #B8B431 #31B8B4
tetradic
#B431B8 #B87031 #35B831 #3178B8
square
#B431B8 #B87031 #35B831 #3178B8
split-complementary
#B431B8 #78B831 #31B870
monochromatic
#551757 #852488 #B431B8 #CE55D2 #DC85DE

Accessibility & contrast

On white

5.16
#B431B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B431B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B431B8
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B431B8#FFFFFF#000000##FFFFFF
##B431B81.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C63BC
Deuteranopia (green-blind)
#5273B5
Tritanopia (blue-blind)
#B94772
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b431b8;
/* rgb */ color: rgb(180, 49, 184);
/* oklch */ color: oklch(56.5% 0.222 326.7);
Tailwind
colors: {
  custom: {
    50: '#ce77ce',
    500: '#b431b8',
    950: '#000000',
  },
}
SCSS
$custom: #b431b8;
$custom-light: #ce77ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b431b8",
  "rgb": {
    "r": 180,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 298.222,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5648,
    "c": 0.22183,
    "h": 326.7
  },
  "luminance": 0.15361
}

Semantic roles & 50–950 ramp

primary
#B431B8
secondary
#7FC87D
accent
#E1474B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B431B8

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

Preview Lab → · Contrast checker → · Palette generator →

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