#B831AF#B831AF

#B831AF is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.6% C 0.217 H 330.9°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#B831AF
RGBrgb(184, 49, 175)
HSLhsl(304, 58%, 46%)
HSVhsv(304, 73%, 72%)
CMYKcmyk(0%, 73.4%, 4.9%, 27.8%)
CIE-LABlab(46.29, 66.57, -38.23)
CIE-LCHlch(46.29, 76.77, 330.13°)
OKLaboklab(56.56% 0.1897 -0.1053)
OKLCHoklch(56.56% 0.217 330.9)
XYZxyz(28.6033, 15.4844, 42.0314)
Luminance0.1548 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831AF #31B83A
analogous
#7D31B8 #B831AF #B8316B
triadic
#B831AF #AFB831 #31AFB8
tetradic
#B831AF #B87D31 #31B83A #316BB8
square
#B831AF #B87D31 #31B83A #316BB8
split-complementary
#B831AF #6BB831 #31B87D
monochromatic
#571753 #882481 #B831AF #D255C9 #DE85D9

Accessibility & contrast

On white

5.13
#B831AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#B831AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831AF
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831AF#FFFFFF#000000##FFFFFF
##B831AF1.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2462B2
Deuteranopia (green-blind)
#5B74AC
Tritanopia (blue-blind)
#BF426D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b831af;
/* rgb */ color: rgb(184, 49, 175);
/* oklch */ color: oklch(56.6% 0.217 330.9);
Tailwind
colors: {
  custom: {
    50: '#d177c7',
    500: '#b831af',
    950: '#000000',
  },
}
SCSS
$custom: #b831af;
$custom-light: #d177c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b831af",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 304,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56564,
    "c": 0.21695,
    "h": 330.9
  },
  "luminance": 0.15482
}

Semantic roles & 50–950 ramp

primary
#B831AF
secondary
#7DC882
accent
#E15147
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #B831AF

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

Preview Lab → · Contrast checker → · Palette generator →

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