#B840A8#B840A8

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

Color values

HEX#B840A8
RGBrgb(184, 64, 168)
HSLhsl(308, 48%, 49%)
HSVhsv(308, 65%, 72%)
CMYKcmyk(0%, 65.2%, 8.7%, 27.8%)
CIE-LABlab(47.86, 60.05, -31.62)
CIE-LCHlch(47.86, 67.87, 332.23°)
OKLaboklab(57.59% 0.1734 -0.0864)
OKLCHoklch(57.59% 0.194 333.5)
XYZxyz(28.6686, 16.6866, 38.7491)
Luminance0.1668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840A8 #40B850
analogous
#8C40B8 #B840A8 #B8406C
triadic
#B840A8 #A8B840 #40A8B8
tetradic
#B840A8 #B88C40 #40B850 #406CB8
square
#B840A8 #B88C40 #40B850 #406CB8
split-complementary
#B840A8 #6CB840 #40B88C
monochromatic
#5D2055 #8B307F #B840A8 #CB6ABE #DB97D2

Accessibility & contrast

On white

4.84
#B840A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B840A8
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840A8#FFFFFF#000000##FFFFFF
##B840A81.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D66AB
Deuteranopia (green-blind)
#6578A5
Tritanopia (blue-blind)
#C04A6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b840a8;
/* rgb */ color: rgb(184, 64, 168);
/* oklch */ color: oklch(57.6% 0.194 333.5);
Tailwind
colors: {
  custom: {
    50: '#d17ec2',
    500: '#b840a8',
    950: '#000000',
  },
}
SCSS
$custom: #b840a8;
$custom-light: #d17ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#b840a8",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 308,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57586,
    "c": 0.19376,
    "h": 333.5
  },
  "luminance": 0.16684
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B840A8

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

Preview Lab → · Contrast checker → · Palette generator →

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