#862E7A#862E7A

#862E7A is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.8% C 0.151 H 333.6°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#862E7A
RGBrgb(134, 46, 122)
HSLhsl(308, 49%, 35%)
HSVhsv(308, 66%, 53%)
CMYKcmyk(0%, 65.7%, 9%, 47.5%)
CIE-LABlab(34.86, 46.84, -24.62)
CIE-LCHlch(34.86, 52.92, 332.27°)
OKLaboklab(45.82% 0.1353 -0.0673)
OKLCHoklch(45.82% 0.151 333.6)
XYZxyz(14.3214, 8.4286, 19.2812)
Luminance0.0843 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862E7A #2E863A
analogous
#662E86 #862E7A #862E4E
triadic
#862E7A #7A862E #2E7A86
tetradic
#862E7A #86662E #2E863A #2E4E86
square
#862E7A #86662E #2E863A #2E4E86
split-complementary
#862E7A #4E862E #2E8666
monochromatic
#2B0F27 #581E51 #862E7A #B43EA3 #CA64BC

Accessibility & contrast

On white

7.82
#862E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#862E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862E7A
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862E7A#FFFFFF#000000##FFFFFF
##862E7A1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4A7C
Deuteranopia (green-blind)
#495778
Tritanopia (blue-blind)
#8C354F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862e7a;
/* rgb */ color: rgb(134, 46, 122);
/* oklch */ color: oklch(45.8% 0.151 333.6);
Tailwind
colors: {
  custom: {
    50: '#ac6da0',
    500: '#862e7a',
    950: '#000000',
  },
}
SCSS
$custom: #862e7a;
$custom-light: #ac6da0;
$custom-dark: #000000;
JSON
{
  "hex": "#862e7a",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 308.182,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45815,
    "c": 0.15106,
    "h": 333.6
  },
  "luminance": 0.08427
}

Semantic roles & 50–950 ramp

primary
#862E7A
secondary
#5FB16A
accent
#D8624F
background
#FAF6F9
surface
#F5ECF2
border
#CFC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #862E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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