#B840D0#B840D0

#B840D0 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.8% C 0.226 H 320.5°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#B840D0
RGBrgb(184, 64, 208)
HSLhsl(290, 61%, 53%)
HSVhsv(290, 69%, 82%)
CMYKcmyk(11.5%, 69.2%, 0%, 18.4%)
CIE-LABlab(49.99, 66.91, -51.52)
CIE-LCHlch(49.99, 84.45, 322.40°)
OKLaboklab(59.81% 0.1747 -0.1441)
OKLCHoklch(59.81% 0.226 320.5)
XYZxyz(32.9844, 18.4129, 61.4789)
Luminance0.1841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840D0 #58D040
analogous
#7040D0 #B840D0 #D040A0
triadic
#B840D0 #D0B840 #40D0B8
tetradic
#B840D0 #D07040 #58D040 #40A0D0
square
#B840D0 #D07040 #58D040 #40A0D0
split-complementary
#B840D0 #A0D040 #40D070
monochromatic
#691E78 #942AA9 #B840D0 #CA71DC #DDA2E8

Accessibility & contrast

On white

4.49
#B840D0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#B840D0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B840D0
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840D0#FFFFFF#000000##000000
##B840D01.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD4
Deuteranopia (green-blind)
#4E7BCD
Tritanopia (blue-blind)
#B95A84
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b840d0;
/* rgb */ color: rgb(184, 64, 208);
/* oklch */ color: oklch(59.8% 0.226 320.5);
Tailwind
colors: {
  custom: {
    50: '#d17fdf',
    500: '#b840d0',
    950: '#000000',
  },
}
SCSS
$custom: #b840d0;
$custom-light: #d17fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#b840d0",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 290,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59811,
    "c": 0.22646,
    "h": 320.5
  },
  "luminance": 0.18411
}

Semantic roles & 50–950 ramp

primary
#B840D0
secondary
#A1D597
accent
#E4445F
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B840D0

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

Preview Lab → · Contrast checker → · Palette generator →

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