#B840A2#B840A2

#B840A2 is a mid, vivid pink. Relative luminance 0.165; OKLCH L 57.3% C 0.189 H 335.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B840A2
RGBrgb(184, 64, 162)
HSLhsl(311, 48%, 49%)
HSVhsv(311, 65%, 72%)
CMYKcmyk(0%, 65.2%, 12%, 27.8%)
CIE-LABlab(47.58, 59.11, -28.51)
CIE-LCHlch(47.58, 65.63, 334.25°)
OKLaboklab(57.29% 0.1727 -0.0775)
OKLCHoklch(57.29% 0.189 335.8)
XYZxyz(28.1225, 16.4681, 35.8729)
Luminance0.1647 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840A2 #40B856
analogous
#9240B8 #B840A2 #B84066
triadic
#B840A2 #A2B840 #40A2B8
tetradic
#B840A2 #B89240 #40B856 #4066B8
square
#B840A2 #B89240 #40B856 #4066B8
split-complementary
#B840A2 #66B840 #40B892
monochromatic
#5D2052 #8B307A #B840A2 #CB6AB9 #DB97CF

Accessibility & contrast

On white

4.89
#B840A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#B840A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B840A2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840A2#FFFFFF#000000##FFFFFF
##B840A21.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4165A5
Deuteranopia (green-blind)
#68779F
Tritanopia (blue-blind)
#C1476B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b840a2;
/* rgb */ color: rgb(184, 64, 162);
/* oklch */ color: oklch(57.3% 0.189 335.8);
Tailwind
colors: {
  custom: {
    50: '#d17dbe',
    500: '#b840a2',
    950: '#000000',
  },
}
SCSS
$custom: #b840a2;
$custom-light: #d17dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#b840a2",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 311,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57291,
    "c": 0.18927,
    "h": 335.8
  },
  "luminance": 0.16466
}

Semantic roles & 50–950 ramp

primary
#B840A2
secondary
#8DC798
accent
#D86950
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B840A2

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

Preview Lab → · Contrast checker → · Palette generator →

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