#B840CE#B840CE

#B840CE is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.7% C 0.225 H 321.0°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#B840CE
RGBrgb(184, 64, 206)
HSLhsl(291, 59%, 53%)
HSVhsv(291, 69%, 81%)
CMYKcmyk(10.7%, 68.9%, 0%, 19.2%)
CIE-LABlab(49.88, 66.55, -50.56)
CIE-LCHlch(49.88, 83.58, 322.77°)
OKLaboklab(59.69% 0.1747 -0.1413)
OKLCHoklch(59.69% 0.225 321)
XYZxyz(32.7399, 18.3151, 60.1912)
Luminance0.1831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840CE #56CE40
analogous
#7140CE #B840CE #CE409D
triadic
#B840CE #CEB840 #40CEB8
tetradic
#B840CE #CE7140 #56CE40 #409DCE
square
#B840CE #CE7140 #56CE40 #409DCE
split-complementary
#B840CE #9DCE40 #40CE71
monochromatic
#681E75 #932BA6 #B840CE #CA71DA #DCA1E7

Accessibility & contrast

On white

4.50
#B840CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#B840CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B840CE
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840CE#FFFFFF#000000##000000
##B840CE1.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#026ED2
Deuteranopia (green-blind)
#507BCB
Tritanopia (blue-blind)
#B95A83
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b840ce;
/* rgb */ color: rgb(184, 64, 206);
/* oklch */ color: oklch(59.7% 0.225 321.0);
Tailwind
colors: {
  custom: {
    50: '#d17fdd',
    500: '#b840ce',
    950: '#000000',
  },
}
SCSS
$custom: #b840ce;
$custom-light: #d17fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#b840ce",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 290.704,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5969,
    "c": 0.22475,
    "h": 321
  },
  "luminance": 0.18313
}

Semantic roles & 50–950 ramp

primary
#B840CE
secondary
#A0D496
accent
#E2455E
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B840CE

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

Preview Lab → · Contrast checker → · Palette generator →

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