#862B7E#862B7E

#862B7E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.159 H 331.5°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#862B7E
RGBrgb(134, 43, 126)
HSLhsl(305, 51%, 35%)
HSVhsv(305, 68%, 53%)
CMYKcmyk(0%, 67.9%, 6%, 47.5%)
CIE-LABlab(34.61, 48.79, -27.52)
CIE-LCHlch(34.61, 56.02, 330.58°)
OKLaboklab(45.7% 0.1394 -0.0756)
OKLCHoklch(45.7% 0.159 331.5)
XYZxyz(14.4613, 8.3035, 20.5757)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862B7E #2B8633
analogous
#612B86 #862B7E #862B50
triadic
#862B7E #7E862B #2B7E86
tetradic
#862B7E #86612B #2B8633 #2B5086
square
#862B7E #86612B #2B8633 #2B5086
split-complementary
#862B7E #50862B #2B8661
monochromatic
#290D27 #581C52 #862B7E #B43AAA #CC60C2

Accessibility & contrast

On white

7.89
#862B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#862B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862B7E
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862B7E#FFFFFF#000000##FFFFFF
##862B7E1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264980
Deuteranopia (green-blind)
#46567C
Tritanopia (blue-blind)
#8B3450
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #862b7e;
/* rgb */ color: rgb(134, 43, 126);
/* oklch */ color: oklch(45.7% 0.159 331.5);
Tailwind
colors: {
  custom: {
    50: '#ac6ca3',
    500: '#862b7e',
    950: '#000000',
  },
}
SCSS
$custom: #862b7e;
$custom-light: #ac6ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#862b7e",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 305.275,
    "s": 51.412,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45698,
    "c": 0.15854,
    "h": 331.5
  },
  "luminance": 0.08302
}

Semantic roles & 50–950 ramp

primary
#862B7E
secondary
#5BB263
accent
#DB594D
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #862B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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