#B840BE#B840BE

#B840BE is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.8% C 0.211 H 325.9°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#B840BE
RGBrgb(184, 64, 190)
HSLhsl(297, 50%, 50%)
HSVhsv(297, 66%, 75%)
CMYKcmyk(3.2%, 66.3%, 0%, 25.5%)
CIE-LABlab(48.98, 63.70, -42.75)
CIE-LCHlch(48.98, 76.72, 326.13°)
OKLaboklab(58.76% 0.1749 -0.1186)
OKLCHoklch(58.76% 0.211 325.9)
XYZxyz(30.8942, 17.5768, 50.4706)
Luminance0.1757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840BE #46BE40
analogous
#7940BE #B840BE #BE4085
triadic
#B840BE #BEB840 #40BEB8
tetradic
#B840BE #BE7940 #46BE40 #4085BE
square
#B840BE #BE7940 #46BE40 #4085BE
split-complementary
#B840BE #85BE40 #40BE79
monochromatic
#5F2162 #8C3190 #B840BE #C96DCE #DA9BDD

Accessibility & contrast

On white

4.65
#B840BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#B840BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B840BE
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840BE#FFFFFF#000000##FFFFFF
##B840BE1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286BC2
Deuteranopia (green-blind)
#5A7ABB
Tritanopia (blue-blind)
#BC537A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b840be;
/* rgb */ color: rgb(184, 64, 190);
/* oklch */ color: oklch(58.8% 0.211 325.9);
Tailwind
colors: {
  custom: {
    50: '#d17ed2',
    500: '#b840be',
    950: '#000000',
  },
}
SCSS
$custom: #b840be;
$custom-light: #d17ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#b840be",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 297.143,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58756,
    "c": 0.21129,
    "h": 325.9
  },
  "luminance": 0.17575
}

Semantic roles & 50–950 ramp

primary
#B840BE
secondary
#93C990
accent
#D94F55
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B840BE

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

Preview Lab → · Contrast checker → · Palette generator →

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