#862BA2#862BA2

#862BA2 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.9% C 0.190 H 316.9°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#862BA2
RGBrgb(134, 43, 162)
HSLhsl(286, 58%, 40%)
HSVhsv(286, 73%, 64%)
CMYKcmyk(17.3%, 73.5%, 0%, 36.5%)
CIE-LABlab(36.75, 55.52, -46.16)
CIE-LCHlch(36.75, 72.20, 320.26°)
OKLaboklab(47.93% 0.139 -0.1298)
OKLCHoklch(47.93% 0.19 316.9)
XYZxyz(17.2160, 9.4054, 35.0840)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862BA2 #47A22B
analogous
#4A2BA2 #862BA2 #A22B83
triadic
#862BA2 #A2862B #2BA286
tetradic
#862BA2 #A24A2B #47A22B #2B83A2
square
#862BA2 #A24A2B #47A22B #2B83A2
split-complementary
#862BA2 #83A22B #2BA24A
monochromatic
#361141 #5E1E72 #862BA2 #AB3ECC #C06FD9

Accessibility & contrast

On white

7.29
#862BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#862BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862BA2
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862BA2#FFFFFF#000000##FFFFFF
##862BA21.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#2D599F
Tritanopia (blue-blind)
#854464
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862ba2;
/* rgb */ color: rgb(134, 43, 162);
/* oklch */ color: oklch(47.9% 0.190 316.9);
Tailwind
colors: {
  custom: {
    50: '#ad6dbe',
    500: '#862ba2',
    950: '#000000',
  },
}
SCSS
$custom: #862ba2;
$custom-light: #ad6dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#862ba2",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 285.882,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47929,
    "c": 0.19017,
    "h": 316.9
  },
  "luminance": 0.09405
}

Semantic roles & 50–950 ramp

primary
#862BA2
secondary
#7DC069
accent
#E1476B
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862BA2

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

Preview Lab → · Contrast checker → · Palette generator →

#862BA2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva