#B840D3#B840D3

#B840D3 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.0% C 0.229 H 319.6°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B840D3
RGBrgb(184, 64, 211)
HSLhsl(289, 63%, 54%)
HSVhsv(289, 70%, 83%)
CMYKcmyk(12.8%, 69.7%, 0%, 17.3%)
CIE-LABlab(50.17, 67.47, -52.96)
CIE-LCHlch(50.17, 85.77, 321.87°)
OKLaboklab(60% 0.1745 -0.1483)
OKLCHoklch(60% 0.229 319.6)
XYZxyz(33.3569, 18.5619, 63.4411)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840D3 #5BD340
analogous
#6F40D3 #B840D3 #D340A4
triadic
#B840D3 #D3B840 #40D3B8
tetradic
#B840D3 #D36F40 #5BD340 #40A4D3
square
#B840D3 #D36F40 #5BD340 #40A4D3
split-complementary
#B840D3 #A4D340 #40D36F
monochromatic
#6A1D7C #9528AE #B840D3 #CA72DE #DDA3EA

Accessibility & contrast

On white

4.46
#B840D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#B840D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B840D3
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840D3#FFFFFF#000000##000000
##B840D31.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD7
Deuteranopia (green-blind)
#4C7BD0
Tritanopia (blue-blind)
#B85C85
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b840d3;
/* rgb */ color: rgb(184, 64, 211);
/* oklch */ color: oklch(60.0% 0.229 319.6);
Tailwind
colors: {
  custom: {
    50: '#d17fe1',
    500: '#b840d3',
    950: '#000000',
  },
}
SCSS
$custom: #b840d3;
$custom-light: #d17fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#b840d3",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 288.98,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59995,
    "c": 0.22903,
    "h": 319.6
  },
  "luminance": 0.1856
}

Semantic roles & 50–950 ramp

primary
#B840D3
secondary
#A4D798
accent
#E64260
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B840D3

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

Preview Lab → · Contrast checker → · Palette generator →

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