#B840E7#B840E7

#B840E7 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.3% C 0.246 H 314.5°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#B840E7
RGBrgb(184, 64, 231)
HSLhsl(283, 78%, 58%)
HSVhsv(283, 72%, 91%)
CMYKcmyk(20.3%, 72.3%, 0%, 9.4%)
CIE-LABlab(51.41, 71.26, -62.32)
CIE-LCHlch(51.41, 94.67, 318.83°)
OKLaboklab(61.28% 0.1727 -0.1758)
OKLCHoklch(61.28% 0.246 314.5)
XYZxyz(36.0220, 19.6279, 77.4769)
Luminance0.1963 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840E7 #6FE740
analogous
#6540E7 #B840E7 #E740C2
triadic
#B840E7 #E7B840 #40E7B8
tetradic
#B840E7 #E76540 #6FE740 #40C2E7
square
#B840E7 #E76540 #6FE740 #40C2E7
split-complementary
#B840E7 #C2E740 #40E765
monochromatic
#741399 #9D1AD0 #B840E7 #CC76EE #E0ADF5

Accessibility & contrast

On white

4.26
#B840E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#B840E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B840E7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840E7#FFFFFF#000000##000000
##B840E71.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#377DE3
Tritanopia (blue-blind)
#B46490
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b840e7;
/* rgb */ color: rgb(184, 64, 231);
/* oklch */ color: oklch(61.3% 0.246 314.5);
Tailwind
colors: {
  custom: {
    50: '#d280ef',
    500: '#b840e7',
    950: '#000000',
  },
}
SCSS
$custom: #b840e7;
$custom-light: #d280ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b840e7",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 231
  },
  "hsl": {
    "h": 283.114,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61277,
    "c": 0.24642,
    "h": 314.5
  },
  "luminance": 0.19627
}

Semantic roles & 50–950 ramp

primary
#B840E7
secondary
#B3E3A0
accent
#F4346A
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #B840E7

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

Preview Lab → · Contrast checker → · Palette generator →

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