#B840DB#B840DB

#B840DB is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.5% C 0.236 H 317.5°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#B840DB
RGBrgb(184, 64, 219)
HSLhsl(286, 68%, 55%)
HSVhsv(286, 71%, 86%)
CMYKcmyk(16%, 70.8%, 0%, 14.1%)
CIE-LABlab(50.66, 68.96, -56.74)
CIE-LCHlch(50.66, 89.31, 320.55°)
OKLaboklab(60.5% 0.1739 -0.1594)
OKLCHoklch(60.5% 0.236 317.5)
XYZxyz(34.3849, 18.9731, 68.8550)
Luminance0.1897 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840DB #63DB40
analogous
#6B40DB #B840DB #DB40B0
triadic
#B840DB #DBB840 #40DBB8
tetradic
#B840DB #DB6B40 #63DB40 #40B0DB
square
#B840DB #DB6B40 #63DB40 #40B0DB
split-complementary
#B840DB #B0DB40 #40DB6B
monochromatic
#6E1987 #9823BB #B840DB #CB73E5 #DEA7EE

Accessibility & contrast

On white

4.38
#B840DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#B840DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B840DB
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840DB#FFFFFF#000000##000000
##B840DB1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#457CD7
Tritanopia (blue-blind)
#B75F8A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b840db;
/* rgb */ color: rgb(184, 64, 219);
/* oklch */ color: oklch(60.5% 0.236 317.5);
Tailwind
colors: {
  custom: {
    50: '#d17fe7',
    500: '#b840db',
    950: '#000000',
  },
}
SCSS
$custom: #b840db;
$custom-light: #d17fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#b840db",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 286.452,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60497,
    "c": 0.23595,
    "h": 317.5
  },
  "luminance": 0.18972
}

Semantic roles & 50–950 ramp

primary
#B840DB
secondary
#AADC9B
accent
#EB3D64
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B840DB

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

Preview Lab → · Contrast checker → · Palette generator →

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