#862BA5#862BA5

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

Color values

HEX#862BA5
RGBrgb(134, 43, 165)
HSLhsl(285, 59%, 41%)
HSVhsv(285, 74%, 65%)
CMYKcmyk(18.8%, 73.9%, 0%, 35.3%)
CIE-LABlab(36.95, 56.12, -47.64)
CIE-LCHlch(36.95, 73.61, 319.67°)
OKLaboklab(48.14% 0.1386 -0.1342)
OKLCHoklch(48.14% 0.193 315.9)
XYZxyz(17.4859, 9.5134, 36.5052)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862BA5 #4AA52B
analogous
#492BA5 #862BA5 #A52B87
triadic
#862BA5 #A5862B #2BA586
tetradic
#862BA5 #A5492B #4AA52B #2B87A5
square
#862BA5 #A5492B #4AA52B #2B87A5
split-complementary
#862BA5 #87A52B #2BA549
monochromatic
#371244 #5F1E74 #862BA5 #A940CD #BF71DA

Accessibility & contrast

On white

7.23
#862BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862BA5
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862BA5#FFFFFF#000000##FFFFFF
##862BA51.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#2959A2
Tritanopia (blue-blind)
#844566
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862ba5;
/* rgb */ color: rgb(134, 43, 165);
/* oklch */ color: oklch(48.1% 0.193 315.9);
Tailwind
colors: {
  custom: {
    50: '#ad6ec0',
    500: '#862ba5',
    950: '#000000',
  },
}
SCSS
$custom: #862ba5;
$custom-light: #ad6ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#862ba5",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 284.754,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48136,
    "c": 0.19291,
    "h": 315.9
  },
  "luminance": 0.09513
}

Semantic roles & 50–950 ramp

primary
#862BA5
secondary
#81C16B
accent
#E2466E
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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