#B840DF#B840DF

#B840DF is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.8% C 0.239 H 316.5°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B840DF
RGBrgb(184, 64, 223)
HSLhsl(285, 71%, 56%)
HSVhsv(285, 71%, 87%)
CMYKcmyk(17.5%, 71.3%, 0%, 12.5%)
CIE-LABlab(50.90, 69.72, -58.62)
CIE-LCHlch(50.90, 91.09, 319.94°)
OKLaboklab(60.75% 0.1736 -0.1649)
OKLCHoklch(60.75% 0.239 316.5)
XYZxyz(34.9178, 19.1863, 71.6617)
Luminance0.1918 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840DF #67DF40
analogous
#6940DF #B840DF #DF40B7
triadic
#B840DF #DFB840 #40DFB8
tetradic
#B840DF #DF6940 #67DF40 #40B7DF
square
#B840DF #DF6940 #67DF40 #40B7DF
split-complementary
#B840DF #B7DF40 #40DF69
monochromatic
#70188D #9A20C1 #B840DF #CB74E8 #DFA9F1

Accessibility & contrast

On white

4.34
#B840DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#B840DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B840DF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840DF#FFFFFF#000000##000000
##B840DF1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E3
Deuteranopia (green-blind)
#407DDB
Tritanopia (blue-blind)
#B6618C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b840df;
/* rgb */ color: rgb(184, 64, 223);
/* oklch */ color: oklch(60.8% 0.239 316.5);
Tailwind
colors: {
  custom: {
    50: '#d27fea',
    500: '#b840df',
    950: '#000000',
  },
}
SCSS
$custom: #b840df;
$custom-light: #d27fea;
$custom-dark: #000000;
JSON
{
  "hex": "#b840df",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 285.283,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60753,
    "c": 0.23943,
    "h": 316.5
  },
  "luminance": 0.19185
}

Semantic roles & 50–950 ramp

primary
#B840DF
secondary
#ADDE9D
accent
#EE3A66
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B840DF

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

Preview Lab → · Contrast checker → · Palette generator →

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