#862E79#862E79

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

Color values

HEX#862E79
RGBrgb(134, 46, 121)
HSLhsl(309, 49%, 35%)
HSVhsv(309, 66%, 53%)
CMYKcmyk(0%, 65.7%, 9.7%, 47.5%)
CIE-LABlab(34.81, 46.67, -24.07)
CIE-LCHlch(34.81, 52.51, 332.72°)
OKLaboklab(45.76% 0.1351 -0.0657)
OKLCHoklch(45.76% 0.15 334.1)
XYZxyz(14.2598, 8.4039, 18.9565)
Luminance0.0840 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862E79 #2E863B
analogous
#672E86 #862E79 #862E4D
triadic
#862E79 #79862E #2E7986
tetradic
#862E79 #86672E #2E863B #2E4D86
square
#862E79 #86672E #2E863B #2E4D86
split-complementary
#862E79 #4D862E #2E8667
monochromatic
#2B0F27 #581E50 #862E79 #B43EA2 #CA64BB

Accessibility & contrast

On white

7.83
#862E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#862E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862E79
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862E79#FFFFFF#000000##FFFFFF
##862E791.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4A7B
Deuteranopia (green-blind)
#495777
Tritanopia (blue-blind)
#8C344F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862e79;
/* rgb */ color: rgb(134, 46, 121);
/* oklch */ color: oklch(45.8% 0.150 334.1);
Tailwind
colors: {
  custom: {
    50: '#ac6da0',
    500: '#862e79',
    950: '#000000',
  },
}
SCSS
$custom: #862e79;
$custom-light: #ac6da0;
$custom-dark: #000000;
JSON
{
  "hex": "#862e79",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 121
  },
  "hsl": {
    "h": 308.864,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45763,
    "c": 0.15025,
    "h": 334.1
  },
  "luminance": 0.08403
}

Semantic roles & 50–950 ramp

primary
#862E79
secondary
#5FB16B
accent
#D8644F
background
#FAF6F9
surface
#F5ECF2
border
#CFC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #862E79

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

Preview Lab → · Contrast checker → · Palette generator →

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