#862D9A#862D9A

#862D9A is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.180 H 319.7°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#862D9A
RGBrgb(134, 45, 154)
HSLhsl(289, 55%, 39%)
HSVhsv(289, 71%, 60%)
CMYKcmyk(13%, 70.8%, 0%, 39.6%)
CIE-LABlab(36.52, 53.13, -41.71)
CIE-LCHlch(36.52, 67.55, 321.87°)
OKLaboklab(47.59% 0.1375 -0.1168)
OKLCHoklch(47.59% 0.18 319.7)
XYZxyz(16.6019, 9.2790, 31.4821)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D9A #419A2D
analogous
#502D9A #862D9A #9A2D78
triadic
#862D9A #9A862D #2D9A86
tetradic
#862D9A #9A502D #419A2D #2D789A
square
#862D9A #9A502D #419A2D #2D789A
split-complementary
#862D9A #789A2D #2D9A50
monochromatic
#34113B #5D1F6B #862D9A #AD3EC7 #C16DD4

Accessibility & contrast

On white

7.35
#862D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#862D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862D9A
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D9A#FFFFFF#000000##FFFFFF
##862D9A1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509D
Deuteranopia (green-blind)
#365997
Tritanopia (blue-blind)
#864160
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862d9a;
/* rgb */ color: rgb(134, 45, 154);
/* oklch */ color: oklch(47.6% 0.180 319.7);
Tailwind
colors: {
  custom: {
    50: '#ad6eb8',
    500: '#862d9a',
    950: '#000000',
  },
}
SCSS
$custom: #862d9a;
$custom-light: #ad6eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#862d9a",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 288.991,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.47594,
    "c": 0.18043,
    "h": 319.7
  },
  "luminance": 0.09278
}

Semantic roles & 50–950 ramp

primary
#862D9A
secondary
#77BB67
accent
#DE4A65
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #862D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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