#B840BA#B840BA

#B840BA is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.5% C 0.208 H 327.2°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#B840BA
RGBrgb(184, 64, 186)
HSLhsl(299, 49%, 49%)
HSVhsv(299, 66%, 73%)
CMYKcmyk(1.1%, 65.6%, 0%, 27.1%)
CIE-LABlab(48.77, 63.01, -40.76)
CIE-LCHlch(48.77, 75.05, 327.10°)
OKLaboklab(58.53% 0.1748 -0.1128)
OKLCHoklch(58.53% 0.208 327.2)
XYZxyz(30.4630, 17.4043, 48.1997)
Luminance0.1740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840BA #42BA40
analogous
#7B40BA #B840BA #BA407F
triadic
#B840BA #BAB840 #40BAB8
tetradic
#B840BA #BA7B40 #42BA40 #407FBA
square
#B840BA #BA7B40 #42BA40 #407FBA
split-complementary
#B840BA #7FBA40 #40BA7B
monochromatic
#5E215F #8B308C #B840BA #CB6BCC #DB99DC

Accessibility & contrast

On white

4.69
#B840BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#B840BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B840BA
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840BA#FFFFFF#000000##FFFFFF
##B840BA1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6ABE
Deuteranopia (green-blind)
#5D79B7
Tritanopia (blue-blind)
#BD5178
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b840ba;
/* rgb */ color: rgb(184, 64, 186);
/* oklch */ color: oklch(58.5% 0.208 327.2);
Tailwind
colors: {
  custom: {
    50: '#d17ecf',
    500: '#b840ba',
    950: '#000000',
  },
}
SCSS
$custom: #b840ba;
$custom-light: #d17ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#b840ba",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 299.016,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58533,
    "c": 0.208,
    "h": 327.2
  },
  "luminance": 0.17402
}

Semantic roles & 50–950 ramp

primary
#B840BA
secondary
#8FC88E
accent
#D84F52
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B840BA

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

Preview Lab → · Contrast checker → · Palette generator →

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