#B840CF#B840CF

#B840CF is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.8% C 0.226 H 320.7°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#B840CF
RGBrgb(184, 64, 207)
HSLhsl(290, 60%, 53%)
HSVhsv(290, 69%, 81%)
CMYKcmyk(11.1%, 69.1%, 0%, 18.8%)
CIE-LABlab(49.93, 66.73, -51.04)
CIE-LCHlch(49.93, 84.01, 322.59°)
OKLaboklab(59.75% 0.1747 -0.1427)
OKLCHoklch(59.75% 0.226 320.7)
XYZxyz(32.8617, 18.3638, 60.8330)
Luminance0.1836 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840CF #57CF40
analogous
#7040CF #B840CF #CF409E
triadic
#B840CF #CFB840 #40CFB8
tetradic
#B840CF #CF7040 #57CF40 #409ECF
square
#B840CF #CF7040 #57CF40 #409ECF
split-complementary
#B840CF #9ECF40 #40CF70
monochromatic
#681E77 #932AA8 #B840CF #CA71DB #DCA2E8

Accessibility & contrast

On white

4.49
#B840CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#B840CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B840CF
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840CF#FFFFFF#000000##000000
##B840CF1.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#4F7BCC
Tritanopia (blue-blind)
#B95A83
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b840cf;
/* rgb */ color: rgb(184, 64, 207);
/* oklch */ color: oklch(59.8% 0.226 320.7);
Tailwind
colors: {
  custom: {
    50: '#d17fde',
    500: '#b840cf',
    950: '#000000',
  },
}
SCSS
$custom: #b840cf;
$custom-light: #d17fde;
$custom-dark: #000000;
JSON
{
  "hex": "#b840cf",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 290.35,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5975,
    "c": 0.22561,
    "h": 320.7
  },
  "luminance": 0.18362
}

Semantic roles & 50–950 ramp

primary
#B840CF
secondary
#A0D497
accent
#E3455E
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B840CF

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

Preview Lab → · Contrast checker → · Palette generator →

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