#B431B7#B431B7

#B431B7 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.4% C 0.221 H 327.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#B431B7
RGBrgb(180, 49, 183)
HSLhsl(299, 58%, 45%)
HSVhsv(299, 73%, 72%)
CMYKcmyk(1.6%, 73.2%, 0%, 28.2%)
CIE-LABlab(46.07, 66.99, -43.32)
CIE-LCHlch(46.07, 79.78, 327.11°)
OKLaboklab(56.42% 0.1855 -0.1202)
OKLCHoklch(56.42% 0.221 327)
XYZxyz(28.4675, 15.3208, 46.2484)
Luminance0.1532 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B431B7 #34B731
analogous
#7131B7 #B431B7 #B73177
triadic
#B431B7 #B7B431 #31B7B4
tetradic
#B431B7 #B77131 #34B731 #3177B7
square
#B431B7 #B77131 #34B731 #3177B7
split-complementary
#B431B7 #77B731 #31B771
monochromatic
#551756 #852487 #B431B7 #CE54D1 #DC84DE

Accessibility & contrast

On white

5.17
#B431B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#B431B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B431B7
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B431B7#FFFFFF#000000##FFFFFF
##B431B71.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F62BB
Deuteranopia (green-blind)
#5373B4
Tritanopia (blue-blind)
#B94772
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b431b7;
/* rgb */ color: rgb(180, 49, 183);
/* oklch */ color: oklch(56.4% 0.221 327.0);
Tailwind
colors: {
  custom: {
    50: '#ce77cd',
    500: '#b431b7',
    950: '#000000',
  },
}
SCSS
$custom: #b431b7;
$custom-light: #ce77cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b431b7",
  "rgb": {
    "r": 180,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 298.657,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56421,
    "c": 0.22105,
    "h": 327
  },
  "luminance": 0.15319
}

Semantic roles & 50–950 ramp

primary
#B431B7
secondary
#7EC87C
accent
#E1474A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B431B7

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

Preview Lab → · Contrast checker → · Palette generator →

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