#B840A9#B840A9

#B840A9 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.6% C 0.195 H 333.1°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#B840A9
RGBrgb(184, 64, 169)
HSLhsl(308, 48%, 49%)
HSVhsv(308, 65%, 72%)
CMYKcmyk(0%, 65.2%, 8.2%, 27.8%)
CIE-LABlab(47.91, 60.21, -32.14)
CIE-LCHlch(47.91, 68.25, 331.91°)
OKLaboklab(57.64% 0.1735 -0.0879)
OKLCHoklch(57.64% 0.195 333.1)
XYZxyz(28.7621, 16.7240, 39.2416)
Luminance0.1672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840A9 #40B84F
analogous
#8B40B8 #B840A9 #B8406D
triadic
#B840A9 #A9B840 #40A9B8
tetradic
#B840A9 #B88B40 #40B84F #406DB8
square
#B840A9 #B88B40 #40B84F #406DB8
split-complementary
#B840A9 #6DB840 #40B88B
monochromatic
#5D2056 #8B307F #B840A9 #CB6ABF #DB97D3

Accessibility & contrast

On white

4.83
#B840A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#B840A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B840A9
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840A9#FFFFFF#000000##FFFFFF
##B840A91.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C67AC
Deuteranopia (green-blind)
#6578A6
Tritanopia (blue-blind)
#C04A6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b840a9;
/* rgb */ color: rgb(184, 64, 169);
/* oklch */ color: oklch(57.6% 0.195 333.1);
Tailwind
colors: {
  custom: {
    50: '#d17ec3',
    500: '#b840a9',
    950: '#000000',
  },
}
SCSS
$custom: #b840a9;
$custom-light: #d17ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#b840a9",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 307.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57636,
    "c": 0.19452,
    "h": 333.1
  },
  "luminance": 0.16722
}

Semantic roles & 50–950 ramp

primary
#B840A9
secondary
#8DC794
accent
#D86150
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B840A9

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

Preview Lab → · Contrast checker → · Palette generator →

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