#862A8B#862A8B

#862A8B is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.171 H 325.7°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#862A8B
RGBrgb(134, 42, 139)
HSLhsl(297, 54%, 35%)
HSVhsv(297, 70%, 55%)
CMYKcmyk(3.6%, 69.8%, 0%, 45.5%)
CIE-LABlab(35.18, 51.50, -34.67)
CIE-LCHlch(35.18, 62.08, 326.05°)
OKLaboklab(46.35% 0.1412 -0.0962)
OKLCHoklch(46.35% 0.171 325.7)
XYZxyz(15.3194, 8.5893, 25.2721)
Luminance0.0859 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862A8B #2F8B2A
analogous
#552A8B #862A8B #8B2A5F
triadic
#862A8B #8B862A #2A8B86
tetradic
#862A8B #8B552A #2F8B2A #2A5F8B
square
#862A8B #8B552A #2F8B2A #2A5F8B
split-complementary
#862A8B #5F8B2A #2A8B55
monochromatic
#2B0E2D #591C5C #862A8B #B338BA #C960CF

Accessibility & contrast

On white

7.73
#862A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#862A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862A8B
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862A8B#FFFFFF#000000##FFFFFF
##862A8B1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164B8E
Deuteranopia (green-blind)
#3E5789
Tritanopia (blue-blind)
#893957
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #862a8b;
/* rgb */ color: rgb(134, 42, 139);
/* oklch */ color: oklch(46.3% 0.171 325.7);
Tailwind
colors: {
  custom: {
    50: '#ac6cad',
    500: '#862a8b',
    950: '#000000',
  },
}
SCSS
$custom: #862a8b;
$custom-light: #ac6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#862a8b",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 296.907,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46345,
    "c": 0.17085,
    "h": 325.7
  },
  "luminance": 0.08588
}

Semantic roles & 50–950 ramp

primary
#862A8B
secondary
#60B55C
accent
#DD4B52
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #862A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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