#B840AA#B840AA

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

Color values

HEX#B840AA
RGBrgb(184, 64, 170)
HSLhsl(307, 48%, 49%)
HSVhsv(307, 65%, 72%)
CMYKcmyk(0%, 65.2%, 7.6%, 27.8%)
CIE-LABlab(47.96, 60.37, -32.65)
CIE-LCHlch(47.96, 68.63, 331.59°)
OKLaboklab(57.69% 0.1736 -0.0894)
OKLCHoklch(57.69% 0.195 332.8)
XYZxyz(28.8563, 16.7617, 39.7379)
Luminance0.1676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840AA #40B84E
analogous
#8A40B8 #B840AA #B8406E
triadic
#B840AA #AAB840 #40AAB8
tetradic
#B840AA #B88A40 #40B84E #406EB8
square
#B840AA #B88A40 #40B84E #406EB8
split-complementary
#B840AA #6EB840 #40B88A
monochromatic
#5D2056 #8B3080 #B840AA #CB6AC0 #DB97D3

Accessibility & contrast

On white

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

On black

4.35
#B840AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B840AA#FFFFFF#000000##FFFFFF
##B840AA1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C67AD
Deuteranopia (green-blind)
#6478A7
Tritanopia (blue-blind)
#C04B6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b840aa;
/* rgb */ color: rgb(184, 64, 170);
/* oklch */ color: oklch(57.7% 0.195 332.8);
Tailwind
colors: {
  custom: {
    50: '#d17ec3',
    500: '#b840aa',
    950: '#000000',
  },
}
SCSS
$custom: #b840aa;
$custom-light: #d17ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#b840aa",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 307,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57686,
    "c": 0.19529,
    "h": 332.8
  },
  "luminance": 0.16759
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B840AA

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

Preview Lab → · Contrast checker → · Palette generator →

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