#862C7E#862C7E

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

Color values

HEX#862C7E
RGBrgb(134, 44, 126)
HSLhsl(305, 51%, 35%)
HSVhsv(305, 67%, 53%)
CMYKcmyk(0%, 67.2%, 6%, 47.5%)
CIE-LABlab(34.76, 48.38, -27.28)
CIE-LCHlch(34.76, 55.54, 330.58°)
OKLaboklab(45.81% 0.1382 -0.0749)
OKLCHoklch(45.81% 0.157 331.5)
XYZxyz(14.4981, 8.3772, 20.5880)
Luminance0.0838 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862C7E #2C8634
analogous
#612C86 #862C7E #862C51
triadic
#862C7E #7E862C #2C7E86
tetradic
#862C7E #86612C #2C8634 #2C5186
square
#862C7E #86612C #2C8634 #2C5186
split-complementary
#862C7E #51862C #2C8661
monochromatic
#2A0E27 #581D53 #862C7E #B43BA9 #CB61C2

Accessibility & contrast

On white

7.85
#862C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862C7E
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862C7E#FFFFFF#000000##FFFFFF
##862C7E1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274A80
Deuteranopia (green-blind)
#46567C
Tritanopia (blue-blind)
#8B3551
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862c7e;
/* rgb */ color: rgb(134, 44, 126);
/* oklch */ color: oklch(45.8% 0.157 331.5);
Tailwind
colors: {
  custom: {
    50: '#ac6da3',
    500: '#862c7e',
    950: '#000000',
  },
}
SCSS
$custom: #862c7e;
$custom-light: #ac6da3;
$custom-dark: #000000;
JSON
{
  "hex": "#862c7e",
  "rgb": {
    "r": 134,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 305.333,
    "s": 50.562,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45806,
    "c": 0.15717,
    "h": 331.5
  },
  "luminance": 0.08376
}

Semantic roles & 50–950 ramp

primary
#862C7E
secondary
#5CB164
accent
#DA5A4E
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #862C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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