#862A9B#862A9B

#862A9B is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.4% C 0.185 H 319.5°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#862A9B
RGBrgb(134, 42, 155)
HSLhsl(289, 57%, 39%)
HSVhsv(289, 73%, 61%)
CMYKcmyk(13.5%, 72.9%, 0%, 39.2%)
CIE-LABlab(36.16, 54.52, -42.88)
CIE-LCHlch(36.16, 69.36, 321.81°)
OKLaboklab(47.36% 0.1406 -0.1202)
OKLCHoklch(47.36% 0.185 319.5)
XYZxyz(16.5751, 9.0916, 31.8858)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862A9B #3F9B2A
analogous
#4E2A9B #862A9B #9B2A77
triadic
#862A9B #9B862A #2A9B86
tetradic
#862A9B #9B4E2A #3F9B2A #2A779B
square
#862A9B #9B4E2A #3F9B2A #2A779B
split-complementary
#862A9B #779B2A #2A9B4E
monochromatic
#33103B #5C1D6B #862A9B #AE39C9 #C269D6

Accessibility & contrast

On white

7.45
#862A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#862A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862A9B
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862A9B#FFFFFF#000000##FFFFFF
##862A9B1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9E
Deuteranopia (green-blind)
#335898
Tritanopia (blue-blind)
#864060
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #862a9b;
/* rgb */ color: rgb(134, 42, 155);
/* oklch */ color: oklch(47.4% 0.185 319.5);
Tailwind
colors: {
  custom: {
    50: '#ad6db9',
    500: '#862a9b',
    950: '#000000',
  },
}
SCSS
$custom: #862a9b;
$custom-light: #ad6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#862a9b",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 288.85,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4736,
    "c": 0.18498,
    "h": 319.5
  },
  "luminance": 0.09091
}

Semantic roles & 50–950 ramp

primary
#862A9B
secondary
#74BD64
accent
#E14764
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #862A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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