#B840A7#B840A7

#B840A7 is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.5% C 0.193 H 333.9°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#B840A7
RGBrgb(184, 64, 167)
HSLhsl(309, 48%, 49%)
HSVhsv(309, 65%, 72%)
CMYKcmyk(0%, 65.2%, 9.2%, 27.8%)
CIE-LABlab(47.82, 59.89, -31.11)
CIE-LCHlch(47.82, 67.49, 332.55°)
OKLaboklab(57.54% 0.1733 -0.085)
OKLCHoklch(57.54% 0.193 333.9)
XYZxyz(28.5758, 16.6494, 38.2604)
Luminance0.1665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840A7 #40B851
analogous
#8D40B8 #B840A7 #B8406B
triadic
#B840A7 #A7B840 #40A7B8
tetradic
#B840A7 #B88D40 #40B851 #406BB8
square
#B840A7 #B88D40 #40B851 #406BB8
split-complementary
#B840A7 #6BB840 #40B88D
monochromatic
#5D2055 #8B307E #B840A7 #CB6ABD #DB97D1

Accessibility & contrast

On white

4.85
#B840A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#B840A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B840A7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840A7#FFFFFF#000000##FFFFFF
##B840A71.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E66AA
Deuteranopia (green-blind)
#6678A4
Tritanopia (blue-blind)
#C0496E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b840a7;
/* rgb */ color: rgb(184, 64, 167);
/* oklch */ color: oklch(57.5% 0.193 333.9);
Tailwind
colors: {
  custom: {
    50: '#d17ec1',
    500: '#b840a7',
    950: '#000000',
  },
}
SCSS
$custom: #b840a7;
$custom-light: #d17ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#b840a7",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 308.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57536,
    "c": 0.193,
    "h": 333.9
  },
  "luminance": 0.16647
}

Semantic roles & 50–950 ramp

primary
#B840A7
secondary
#8DC795
accent
#D86350
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B840A7

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

Preview Lab → · Contrast checker → · Palette generator →

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