#862BA4#862BA4

#862BA4 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.1% C 0.192 H 316.3°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#862BA4
RGBrgb(134, 43, 164)
HSLhsl(285, 58%, 41%)
HSVhsv(285, 74%, 64%)
CMYKcmyk(18.3%, 73.8%, 0%, 35.7%)
CIE-LABlab(36.89, 55.92, -47.15)
CIE-LCHlch(36.89, 73.14, 319.86°)
OKLaboklab(48.07% 0.1387 -0.1327)
OKLCHoklch(48.07% 0.192 316.3)
XYZxyz(17.3952, 9.4771, 36.0277)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862BA4 #49A42B
analogous
#492BA4 #862BA4 #A42B85
triadic
#862BA4 #A4862B #2BA486
tetradic
#862BA4 #A4492B #49A42B #2B85A4
square
#862BA4 #A4492B #49A42B #2B85A4
split-complementary
#862BA4 #85A42B #2BA449
monochromatic
#371243 #5E1E74 #862BA4 #AA3FCD #BF70D9

Accessibility & contrast

On white

7.25
#862BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#862BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862BA4
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862BA4#FFFFFF#000000##FFFFFF
##862BA41.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#2B59A1
Tritanopia (blue-blind)
#844465
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862ba4;
/* rgb */ color: rgb(134, 43, 164);
/* oklch */ color: oklch(48.1% 0.192 316.3);
Tailwind
colors: {
  custom: {
    50: '#ad6ec0',
    500: '#862ba4',
    950: '#000000',
  },
}
SCSS
$custom: #862ba4;
$custom-light: #ad6ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#862ba4",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 285.124,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48067,
    "c": 0.19199,
    "h": 316.3
  },
  "luminance": 0.09476
}

Semantic roles & 50–950 ramp

primary
#862BA4
secondary
#80C16A
accent
#E2466D
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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