#B840C7#B840C7

#B840C7 is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.3% C 0.219 H 323.1°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#B840C7
RGBrgb(184, 64, 199)
HSLhsl(293, 55%, 52%)
HSVhsv(293, 68%, 78%)
CMYKcmyk(7.5%, 67.8%, 0%, 22%)
CIE-LABlab(49.47, 65.28, -47.17)
CIE-LCHlch(49.47, 80.54, 324.15°)
OKLaboklab(59.27% 0.1749 -0.1314)
OKLCHoklch(59.27% 0.219 323.1)
XYZxyz(31.9084, 17.9825, 55.8120)
Luminance0.1798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840C7 #4FC740
analogous
#7540C7 #B840C7 #C74093
triadic
#B840C7 #C7B840 #40C7B8
tetradic
#B840C7 #C77540 #4FC740 #4093C7
square
#B840C7 #C77540 #4FC740 #4093C7
split-complementary
#B840C7 #93C740 #40C775
monochromatic
#64206D #902E9C #B840C7 #CA6FD5 #DB9FE3

Accessibility & contrast

On white

4.57
#B840C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#B840C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B840C7
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840C7#FFFFFF#000000##000000
##B840C71.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#196DCB
Deuteranopia (green-blind)
#557AC4
Tritanopia (blue-blind)
#BB577F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b840c7;
/* rgb */ color: rgb(184, 64, 199);
/* oklch */ color: oklch(59.3% 0.219 323.1);
Tailwind
colors: {
  custom: {
    50: '#d17fd8',
    500: '#b840c7',
    950: '#000000',
  },
}
SCSS
$custom: #b840c7;
$custom-light: #d17fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#b840c7",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 293.333,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.59273,
    "c": 0.21881,
    "h": 323.1
  },
  "luminance": 0.17981
}

Semantic roles & 50–950 ramp

primary
#B840C7
secondary
#9ACF94
accent
#DE4A5A
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B840C7

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

Preview Lab → · Contrast checker → · Palette generator →

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