#B840CA#B840CA

#B840CA is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.5% C 0.221 H 322.2°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B840CA
RGBrgb(184, 64, 202)
HSLhsl(292, 57%, 52%)
HSVhsv(292, 68%, 79%)
CMYKcmyk(8.9%, 68.3%, 0%, 20.8%)
CIE-LABlab(49.65, 65.82, -48.63)
CIE-LCHlch(49.65, 81.84, 323.54°)
OKLaboklab(59.45% 0.1749 -0.1357)
OKLCHoklch(59.45% 0.221 322.2)
XYZxyz(32.2601, 18.1232, 57.6646)
Luminance0.1812 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840CA #52CA40
analogous
#7340CA #B840CA #CA4097
triadic
#B840CA #CAB840 #40CAB8
tetradic
#B840CA #CA7340 #52CA40 #4097CA
square
#B840CA #CA7340 #52CA40 #4097CA
split-complementary
#B840CA #97CA40 #40CA73
monochromatic
#661F70 #912CA0 #B840CA #CA70D7 #DCA0E5

Accessibility & contrast

On white

4.54
#B840CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#B840CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B840CA
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840CA#FFFFFF#000000##000000
##B840CA1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#126DCE
Deuteranopia (green-blind)
#537BC7
Tritanopia (blue-blind)
#BA5880
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b840ca;
/* rgb */ color: rgb(184, 64, 202);
/* oklch */ color: oklch(59.5% 0.221 322.2);
Tailwind
colors: {
  custom: {
    50: '#d17fdb',
    500: '#b840ca',
    950: '#000000',
  },
}
SCSS
$custom: #b840ca;
$custom-light: #d17fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b840ca",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 292.174,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5945,
    "c": 0.22135,
    "h": 322.2
  },
  "luminance": 0.18121
}

Semantic roles & 50–950 ramp

primary
#B840CA
secondary
#9DD195
accent
#E0485C
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B840CA

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

Preview Lab → · Contrast checker → · Palette generator →

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