#B840C8#B840C8

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

Color values

HEX#B840C8
RGBrgb(184, 64, 200)
HSLhsl(293, 55%, 52%)
HSVhsv(293, 68%, 78%)
CMYKcmyk(8%, 68%, 0%, 21.6%)
CIE-LABlab(49.53, 65.46, -47.66)
CIE-LCHlch(49.53, 80.97, 323.94°)
OKLaboklab(59.33% 0.1749 -0.1329)
OKLCHoklch(59.33% 0.22 322.8)
XYZxyz(32.0249, 18.0291, 56.4255)
Luminance0.1803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840C8 #50C840
analogous
#7440C8 #B840C8 #C84094
triadic
#B840C8 #C8B840 #40C8B8
tetradic
#B840C8 #C87440 #50C840 #4094C8
square
#B840C8 #C87440 #50C840 #4094C8
split-complementary
#B840C8 #94C840 #40C874
monochromatic
#65206E #902D9D #B840C8 #CA70D6 #DB9FE3

Accessibility & contrast

On white

4.56
#B840C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#B840C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B840C8
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840C8#FFFFFF#000000##000000
##B840C81.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#176DCC
Deuteranopia (green-blind)
#547AC5
Tritanopia (blue-blind)
#BB577F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b840c8;
/* rgb */ color: rgb(184, 64, 200);
/* oklch */ color: oklch(59.3% 0.220 322.8);
Tailwind
colors: {
  custom: {
    50: '#d17fd9',
    500: '#b840c8',
    950: '#000000',
  },
}
SCSS
$custom: #b840c8;
$custom-light: #d17fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#b840c8",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 292.941,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59332,
    "c": 0.21965,
    "h": 322.8
  },
  "luminance": 0.18027
}

Semantic roles & 50–950 ramp

primary
#B840C8
secondary
#9BD094
accent
#DF495B
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B15
muted
#837C83

Preview Lab

Preview with #B840C8

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

Preview Lab → · Contrast checker → · Palette generator →

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