#862A80#862A80

#862A80 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.162 H 330.6°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#862A80
RGBrgb(134, 42, 128)
HSLhsl(304, 52%, 35%)
HSVhsv(304, 69%, 53%)
CMYKcmyk(0%, 68.7%, 4.5%, 47.5%)
CIE-LABlab(34.57, 49.54, -28.83)
CIE-LCHlch(34.57, 57.32, 329.81°)
OKLaboklab(45.7% 0.1407 -0.0793)
OKLCHoklch(45.7% 0.162 330.6)
XYZxyz(14.5557, 8.2839, 21.2502)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862A80 #2A8630
analogous
#5E2A86 #862A80 #862A52
triadic
#862A80 #80862A #2A8086
tetradic
#862A80 #865E2A #2A8630 #2A5286
square
#862A80 #865E2A #2A8630 #2A5286
split-complementary
#862A80 #52862A #2A865E
monochromatic
#290D27 #571B53 #862A80 #B539AD #CD5EC5

Accessibility & contrast

On white

7.90
#862A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#862A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862A80
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862A80#FFFFFF#000000##FFFFFF
##862A801.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234982
Deuteranopia (green-blind)
#44567E
Tritanopia (blue-blind)
#8B3451
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #862a80;
/* rgb */ color: rgb(134, 42, 128);
/* oklch */ color: oklch(45.7% 0.162 330.6);
Tailwind
colors: {
  custom: {
    50: '#ac6ca5',
    500: '#862a80',
    950: '#000000',
  },
}
SCSS
$custom: #862a80;
$custom-light: #ac6ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#862a80",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 303.913,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45703,
    "c": 0.16154,
    "h": 330.6
  },
  "luminance": 0.08283
}

Semantic roles & 50–950 ramp

primary
#862A80
secondary
#5AB25F
accent
#DC554C
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #862A80

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

Preview Lab → · Contrast checker → · Palette generator →

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