#B840D5#B840D5

#B840D5 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.1% C 0.231 H 319.1°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#B840D5
RGBrgb(184, 64, 213)
HSLhsl(288, 64%, 54%)
HSVhsv(288, 70%, 84%)
CMYKcmyk(13.6%, 70%, 0%, 16.5%)
CIE-LABlab(50.29, 67.84, -53.91)
CIE-LCHlch(50.29, 86.65, 321.53°)
OKLaboklab(60.12% 0.1744 -0.1511)
OKLCHoklch(60.12% 0.231 319.1)
XYZxyz(33.6092, 18.6628, 64.7698)
Luminance0.1866 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840D5 #5DD540
analogous
#6E40D5 #B840D5 #D540A8
triadic
#B840D5 #D5B840 #40D5B8
tetradic
#B840D5 #D56E40 #5DD540 #40A8D5
square
#B840D5 #D56E40 #5DD540 #40A8D5
split-complementary
#B840D5 #A8D540 #40D56E
monochromatic
#6B1C7F #9627B1 #B840D5 #CB72E0 #DDA4EB

Accessibility & contrast

On white

4.44
#B840D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#B840D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B840D5
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840D5#FFFFFF#000000##000000
##B840D51.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070D9
Deuteranopia (green-blind)
#4A7CD2
Tritanopia (blue-blind)
#B85D86
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b840d5;
/* rgb */ color: rgb(184, 64, 213);
/* oklch */ color: oklch(60.1% 0.231 319.1);
Tailwind
colors: {
  custom: {
    50: '#d17fe3',
    500: '#b840d5',
    950: '#000000',
  },
}
SCSS
$custom: #b840d5;
$custom-light: #d17fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#b840d5",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 288.322,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.60119,
    "c": 0.23076,
    "h": 319.1
  },
  "luminance": 0.18661
}

Semantic roles & 50–950 ramp

primary
#B840D5
secondary
#A5D899
accent
#E74161
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B840D5

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

Preview Lab → · Contrast checker → · Palette generator →

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