#862A78#862A78

#862A78 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.3% C 0.155 H 334.5°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#862A78
RGBrgb(134, 42, 120)
HSLhsl(309, 52%, 35%)
HSVhsv(309, 69%, 53%)
CMYKcmyk(0%, 68.7%, 10.4%, 47.5%)
CIE-LABlab(34.15, 48.20, -24.47)
CIE-LCHlch(34.15, 54.06, 333.08°)
OKLaboklab(45.27% 0.14 -0.0668)
OKLCHoklch(45.27% 0.155 334.5)
XYZxyz(14.0498, 8.0815, 18.5856)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862A78 #2A8638
analogous
#662A86 #862A78 #862A4A
triadic
#862A78 #78862A #2A7886
tetradic
#862A78 #86662A #2A8638 #2A4A86
square
#862A78 #86662A #2A8638 #2A4A86
split-complementary
#862A78 #4A862A #2A8666
monochromatic
#290D25 #571B4E #862A78 #B539A2 #CD5EBC

Accessibility & contrast

On white

8.03
#862A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#862A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862A78
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862A78#FFFFFF#000000##FFFFFF
##862A781.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29487A
Deuteranopia (green-blind)
#485576
Tritanopia (blue-blind)
#8C314D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #862a78;
/* rgb */ color: rgb(134, 42, 120);
/* oklch */ color: oklch(45.3% 0.155 334.5);
Tailwind
colors: {
  custom: {
    50: '#ac6b9f',
    500: '#862a78',
    950: '#000000',
  },
}
SCSS
$custom: #862a78;
$custom-light: #ac6b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#862a78",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 309.13,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45268,
    "c": 0.15508,
    "h": 334.5
  },
  "luminance": 0.0808
}

Semantic roles & 50–950 ramp

primary
#862A78
secondary
#5AB267
accent
#DC624C
background
#FAF6F9
surface
#F5ECF2
border
#CFC7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #862A78

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

Preview Lab → · Contrast checker → · Palette generator →

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