#862A8E#862A8E

#862A8E is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.173 H 324.5°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#862A8E
RGBrgb(134, 42, 142)
HSLhsl(295, 54%, 36%)
HSVhsv(295, 70%, 56%)
CMYKcmyk(5.6%, 70.4%, 0%, 44.3%)
CIE-LABlab(35.36, 52.05, -36.23)
CIE-LCHlch(35.36, 63.42, 325.16°)
OKLaboklab(46.53% 0.1412 -0.1008)
OKLCHoklch(46.53% 0.173 324.5)
XYZxyz(15.5416, 8.6782, 26.4424)
Luminance0.0868 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862A8E #328E2A
analogous
#542A8E #862A8E #8E2A64
triadic
#862A8E #8E862A #2A8E86
tetradic
#862A8E #8E542A #328E2A #2A648E
square
#862A8E #8E542A #328E2A #2A648E
split-complementary
#862A8E #648E2A #2A8E54
monochromatic
#2D0E30 #591C5F #862A8E #B338BD #C862D1

Accessibility & contrast

On white

7.68
#862A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#862A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862A8E
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862A8E#FFFFFF#000000##FFFFFF
##862A8E1.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104C91
Deuteranopia (green-blind)
#3C578C
Tritanopia (blue-blind)
#893A59
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #862a8e;
/* rgb */ color: rgb(134, 42, 142);
/* oklch */ color: oklch(46.5% 0.173 324.5);
Tailwind
colors: {
  custom: {
    50: '#ac6caf',
    500: '#862a8e',
    950: '#000000',
  },
}
SCSS
$custom: #862a8e;
$custom-light: #ac6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#862a8e",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 295.2,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46528,
    "c": 0.17346,
    "h": 324.5
  },
  "luminance": 0.08677
}

Semantic roles & 50–950 ramp

primary
#862A8E
secondary
#64B65D
accent
#DE4A56
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #862A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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