#862A7D#862A7D

#862A7D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.159 H 332.0°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#862A7D
RGBrgb(134, 42, 125)
HSLhsl(306, 52%, 35%)
HSVhsv(306, 69%, 53%)
CMYKcmyk(0%, 68.7%, 6.7%, 47.5%)
CIE-LABlab(34.41, 49.03, -27.20)
CIE-LCHlch(34.41, 56.07, 330.98°)
OKLaboklab(45.54% 0.1405 -0.0746)
OKLCHoklch(45.54% 0.159 332)
XYZxyz(14.3612, 8.2060, 20.2256)
Luminance0.0820 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862A7D #2A8633
analogous
#612A86 #862A7D #862A4F
triadic
#862A7D #7D862A #2A7D86
tetradic
#862A7D #86612A #2A8633 #2A4F86
square
#862A7D #86612A #2A8633 #2A4F86
split-complementary
#862A7D #4F862A #2A8661
monochromatic
#290D26 #571B52 #862A7D #B539A8 #CD5EC2

Accessibility & contrast

On white

7.95
#862A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#862A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862A7D
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862A7D#FFFFFF#000000##FFFFFF
##862A7D1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25497F
Deuteranopia (green-blind)
#46567B
Tritanopia (blue-blind)
#8C3350
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #862a7d;
/* rgb */ color: rgb(134, 42, 125);
/* oklch */ color: oklch(45.5% 0.159 332.0);
Tailwind
colors: {
  custom: {
    50: '#ac6ca3',
    500: '#862a7d',
    950: '#000000',
  },
}
SCSS
$custom: #862a7d;
$custom-light: #ac6ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#862a7d",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 305.87,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45537,
    "c": 0.15908,
    "h": 332
  },
  "luminance": 0.08205
}

Semantic roles & 50–950 ramp

primary
#862A7D
secondary
#5AB262
accent
#DC5A4C
background
#FAF6FA
surface
#F5ECF3
border
#CFC7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #862A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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