#B840AC#B840AC

#B840AC is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.8% C 0.197 H 332.0°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#B840AC
RGBrgb(184, 64, 172)
HSLhsl(306, 48%, 49%)
HSVhsv(306, 65%, 72%)
CMYKcmyk(0%, 65.2%, 6.5%, 27.8%)
CIE-LABlab(48.06, 60.69, -33.68)
CIE-LCHlch(48.06, 69.41, 330.97°)
OKLaboklab(57.79% 0.1738 -0.0924)
OKLCHoklch(57.79% 0.197 332)
XYZxyz(29.0470, 16.8379, 40.7419)
Luminance0.1684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840AC #40B84C
analogous
#8840B8 #B840AC #B84070
triadic
#B840AC #ACB840 #40ACB8
tetradic
#B840AC #B88840 #40B84C #4070B8
square
#B840AC #B88840 #40B84C #4070B8
split-complementary
#B840AC #70B840 #40B888
monochromatic
#5D2057 #8B3082 #B840AC #CB6AC1 #DB97D4

Accessibility & contrast

On white

4.81
#B840AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#B840AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B840AC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840AC#FFFFFF#000000##FFFFFF
##B840AC1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A67AF
Deuteranopia (green-blind)
#6478A9
Tritanopia (blue-blind)
#C04B70
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b840ac;
/* rgb */ color: rgb(184, 64, 172);
/* oklch */ color: oklch(57.8% 0.197 332.0);
Tailwind
colors: {
  custom: {
    50: '#d17ec5',
    500: '#b840ac',
    950: '#000000',
  },
}
SCSS
$custom: #b840ac;
$custom-light: #d17ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#b840ac",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 306,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57788,
    "c": 0.19683,
    "h": 332
  },
  "luminance": 0.16836
}

Semantic roles & 50–950 ramp

primary
#B840AC
secondary
#8DC793
accent
#D85D50
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B840AC

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

Preview Lab → · Contrast checker → · Palette generator →

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