#862F7A#862F7A

#862F7A is a mid, vivid purple. Relative luminance 0.085; OKLCH L 45.9% C 0.150 H 333.6°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#862F7A
RGBrgb(134, 47, 122)
HSLhsl(308, 48%, 35%)
HSVhsv(308, 65%, 53%)
CMYKcmyk(0%, 64.9%, 9%, 47.5%)
CIE-LABlab(35.02, 46.40, -24.37)
CIE-LCHlch(35.02, 52.41, 332.29°)
OKLaboklab(45.93% 0.134 -0.0666)
OKLCHoklch(45.93% 0.15 333.6)
XYZxyz(14.3609, 8.5076, 19.2943)
Luminance0.0851 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F7A #2F863B
analogous
#662F86 #862F7A #862F4E
triadic
#862F7A #7A862F #2F7A86
tetradic
#862F7A #86662F #2F863B #2F4E86
square
#862F7A #86662F #2F863B #2F4E86
split-complementary
#862F7A #4E862F #2F8666
monochromatic
#2B0F27 #591F51 #862F7A #B33FA3 #C966BC

Accessibility & contrast

On white

7.77
#862F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#862F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F7A
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F7A#FFFFFF#000000##FFFFFF
##862F7A1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4A7C
Deuteranopia (green-blind)
#4A5778
Tritanopia (blue-blind)
#8C3650
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862f7a;
/* rgb */ color: rgb(134, 47, 122);
/* oklch */ color: oklch(45.9% 0.150 333.6);
Tailwind
colors: {
  custom: {
    50: '#ac6ea0',
    500: '#862f7a',
    950: '#000000',
  },
}
SCSS
$custom: #862f7a;
$custom-light: #ac6ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#862f7a",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 308.276,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4593,
    "c": 0.1496,
    "h": 333.6
  },
  "luminance": 0.08507
}

Semantic roles & 50–950 ramp

primary
#862F7A
secondary
#60B06C
accent
#D86350
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10080F
muted
#7F7B7E

Preview Lab

Preview with #862F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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