#B840BC#B840BC

#B840BC is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.6% C 0.210 H 326.5°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#B840BC
RGBrgb(184, 64, 188)
HSLhsl(298, 49%, 49%)
HSVhsv(298, 66%, 74%)
CMYKcmyk(2.1%, 66%, 0%, 26.3%)
CIE-LABlab(48.87, 63.36, -41.76)
CIE-LCHlch(48.87, 75.88, 326.61°)
OKLaboklab(58.64% 0.1748 -0.1157)
OKLCHoklch(58.64% 0.21 326.5)
XYZxyz(30.6771, 17.4900, 49.3273)
Luminance0.1749 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840BC #44BC40
analogous
#7A40BC #B840BC #BC4082
triadic
#B840BC #BCB840 #40BCB8
tetradic
#B840BC #BC7A40 #44BC40 #4082BC
square
#B840BC #BC7A40 #44BC40 #4082BC
split-complementary
#B840BC #82BC40 #40BC7A
monochromatic
#5F2161 #8B308E #B840BC #CA6CCD #DA9ADD

Accessibility & contrast

On white

4.67
#B840BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#B840BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B840BC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840BC#FFFFFF#000000##FFFFFF
##B840BC1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6AC0
Deuteranopia (green-blind)
#5B79B9
Tritanopia (blue-blind)
#BD5279
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b840bc;
/* rgb */ color: rgb(184, 64, 188);
/* oklch */ color: oklch(58.6% 0.210 326.5);
Tailwind
colors: {
  custom: {
    50: '#d17ed0',
    500: '#b840bc',
    950: '#000000',
  },
}
SCSS
$custom: #b840bc;
$custom-light: #d17ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#b840bc",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 298.065,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.58644,
    "c": 0.20964,
    "h": 326.5
  },
  "luminance": 0.17488
}

Semantic roles & 50–950 ramp

primary
#B840BC
secondary
#91C98F
accent
#D94F53
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B840BC

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

Preview Lab → · Contrast checker → · Palette generator →

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