#B840B2#B840B2

#B840B2 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.1% C 0.202 H 329.9°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B840B2
RGBrgb(184, 64, 178)
HSLhsl(303, 48%, 49%)
HSVhsv(303, 65%, 72%)
CMYKcmyk(0%, 65.2%, 3.3%, 27.8%)
CIE-LABlab(48.35, 61.67, -36.74)
CIE-LCHlch(48.35, 71.78, 329.22°)
OKLaboklab(58.1% 0.1743 -0.1012)
OKLCHoklch(58.1% 0.202 329.9)
XYZxyz(29.6362, 17.0736, 43.8455)
Luminance0.1707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840B2 #40B846
analogous
#8240B8 #B840B2 #B84076
triadic
#B840B2 #B2B840 #40B2B8
tetradic
#B840B2 #B88240 #40B846 #4076B8
square
#B840B2 #B88240 #40B846 #4076B8
split-complementary
#B840B2 #76B840 #40B882
monochromatic
#5D205A #8B3086 #B840B2 #CB6AC6 #DB97D8

Accessibility & contrast

On white

4.76
#B840B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#B840B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B840B2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840B2#FFFFFF#000000##FFFFFF
##B840B21.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3568B5
Deuteranopia (green-blind)
#6179AF
Tritanopia (blue-blind)
#BF4E73
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b840b2;
/* rgb */ color: rgb(184, 64, 178);
/* oklch */ color: oklch(58.1% 0.202 329.9);
Tailwind
colors: {
  custom: {
    50: '#d17ec9',
    500: '#b840b2',
    950: '#000000',
  },
}
SCSS
$custom: #b840b2;
$custom-light: #d17ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#b840b2",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 303,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.58101,
    "c": 0.20155,
    "h": 329.9
  },
  "luminance": 0.17071
}

Semantic roles & 50–950 ramp

primary
#B840B2
secondary
#8DC790
accent
#D85750
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #B840B2

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

Preview Lab → · Contrast checker → · Palette generator →

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