#B840CB#B840CB

#B840CB is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.5% C 0.222 H 321.9°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#B840CB
RGBrgb(184, 64, 203)
HSLhsl(292, 57%, 52%)
HSVhsv(292, 68%, 80%)
CMYKcmyk(9.4%, 68.5%, 0%, 20.4%)
CIE-LABlab(49.70, 66.00, -49.12)
CIE-LCHlch(49.70, 82.27, 323.35°)
OKLaboklab(59.51% 0.1748 -0.1371)
OKLCHoklch(59.51% 0.222 321.9)
XYZxyz(32.3789, 18.1707, 58.2901)
Luminance0.1817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840CB #53CB40
analogous
#7340CB #B840CB #CB4098
triadic
#B840CB #CBB840 #40CBB8
tetradic
#B840CB #CB7340 #53CB40 #4098CB
square
#B840CB #CB7340 #53CB40 #4098CB
split-complementary
#B840CB #98CB40 #40CB73
monochromatic
#661F72 #922CA2 #B840CB #CA70D8 #DCA0E5

Accessibility & contrast

On white

4.53
#B840CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#B840CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B840CB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840CB#FFFFFF#000000##000000
##B840CB1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F6ECF
Deuteranopia (green-blind)
#527BC8
Tritanopia (blue-blind)
#BA5881
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b840cb;
/* rgb */ color: rgb(184, 64, 203);
/* oklch */ color: oklch(59.5% 0.222 321.9);
Tailwind
colors: {
  custom: {
    50: '#d17fdb',
    500: '#b840cb',
    950: '#000000',
  },
}
SCSS
$custom: #b840cb;
$custom-light: #d17fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b840cb",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 291.799,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.59509,
    "c": 0.22219,
    "h": 321.9
  },
  "luminance": 0.18169
}

Semantic roles & 50–950 ramp

primary
#B840CB
secondary
#9DD295
accent
#E0475C
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B840CB

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

Preview Lab → · Contrast checker → · Palette generator →

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