#B840C4#B840C4

#B840C4 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.1% C 0.216 H 324.0°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#B840C4
RGBrgb(184, 64, 196)
HSLhsl(295, 53%, 51%)
HSVhsv(295, 67%, 77%)
CMYKcmyk(6.1%, 67.3%, 0%, 23.1%)
CIE-LABlab(49.31, 64.75, -45.71)
CIE-LCHlch(49.31, 79.26, 324.78°)
OKLaboklab(59.1% 0.1749 -0.1272)
OKLCHoklch(59.1% 0.216 324)
XYZxyz(31.5635, 17.8445, 53.9957)
Luminance0.1784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840C4 #4CC440
analogous
#7640C4 #B840C4 #C4408E
triadic
#B840C4 #C4B840 #40C4B8
tetradic
#B840C4 #C47640 #4CC440 #408EC4
square
#B840C4 #C47640 #4CC440 #408EC4
split-complementary
#B840C4 #8EC440 #40C476
monochromatic
#632069 #8E2F98 #B840C4 #C96FD2 #DB9EE1

Accessibility & contrast

On white

4.60
#B840C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#B840C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B840C4
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840C4#FFFFFF#000000##FFFFFF
##B840C41.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6CC8
Deuteranopia (green-blind)
#577AC1
Tritanopia (blue-blind)
#BB557D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b840c4;
/* rgb */ color: rgb(184, 64, 196);
/* oklch */ color: oklch(59.1% 0.216 324.0);
Tailwind
colors: {
  custom: {
    50: '#d17ed6',
    500: '#b840c4',
    950: '#000000',
  },
}
SCSS
$custom: #b840c4;
$custom-light: #d17ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#b840c4",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 294.545,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59098,
    "c": 0.21628,
    "h": 324
  },
  "luminance": 0.17843
}

Semantic roles & 50–950 ramp

primary
#B840C4
secondary
#98CD93
accent
#DC4C59
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B840C4

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

Preview Lab → · Contrast checker → · Palette generator →

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