#B831A0#B831A0

#B831A0 is a mid, highly saturated pink. Relative luminance 0.149; OKLCH L 55.8% C 0.206 H 336.2°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B831A0
RGBrgb(184, 49, 160)
HSLhsl(311, 58%, 46%)
HSVhsv(311, 73%, 72%)
CMYKcmyk(0%, 73.4%, 13%, 27.8%)
CIE-LABlab(45.53, 64.30, -30.52)
CIE-LCHlch(45.53, 71.18, 334.61°)
OKLaboklab(55.78% 0.1887 -0.0832)
OKLCHoklch(55.78% 0.206 336.2)
XYZxyz(27.2111, 14.9275, 34.6991)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831A0 #31B849
analogous
#8C31B8 #B831A0 #B8315C
triadic
#B831A0 #A0B831 #31A0B8
tetradic
#B831A0 #B88C31 #31B849 #315CB8
square
#B831A0 #B88C31 #31B849 #315CB8
split-complementary
#B831A0 #5CB831 #31B88C
monochromatic
#57174C #882476 #B831A0 #D255BB #DE85CF

Accessibility & contrast

On white

5.27
#B831A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B831A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831A0
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831A0#FFFFFF#000000##FFFFFF
##B831A01.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335FA3
Deuteranopia (green-blind)
#62739D
Tritanopia (blue-blind)
#C23A65
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b831a0;
/* rgb */ color: rgb(184, 49, 160);
/* oklch */ color: oklch(55.8% 0.206 336.2);
Tailwind
colors: {
  custom: {
    50: '#d176bc',
    500: '#b831a0',
    950: '#000000',
  },
}
SCSS
$custom: #b831a0;
$custom-light: #d176bc;
$custom-dark: #000000;
JSON
{
  "hex": "#b831a0",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 160
  },
  "hsl": {
    "h": 310.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55775,
    "c": 0.2062,
    "h": 336.2
  },
  "luminance": 0.14925
}

Semantic roles & 50–950 ramp

primary
#B831A0
secondary
#7DC88A
accent
#E16247
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #B831A0

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

Preview Lab → · Contrast checker → · Palette generator →

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