#862F7D#862F7D

#862F7D is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.1% C 0.152 H 332.1°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#862F7D
RGBrgb(134, 47, 125)
HSLhsl(306, 48%, 35%)
HSVhsv(306, 65%, 53%)
CMYKcmyk(0%, 64.9%, 6.7%, 47.5%)
CIE-LABlab(35.17, 46.91, -26.01)
CIE-LCHlch(35.17, 53.64, 330.99°)
OKLaboklab(46.09% 0.1343 -0.0713)
OKLCHoklch(46.09% 0.152 332.1)
XYZxyz(14.5497, 8.5831, 20.2884)
Luminance0.0858 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F7D #2F8638
analogous
#632F86 #862F7D #862F51
triadic
#862F7D #7D862F #2F7D86
tetradic
#862F7D #86632F #2F8638 #2F5186
square
#862F7D #86632F #2F8638 #2F5186
split-complementary
#862F7D #51862F #2F8663
monochromatic
#2B0F28 #591F53 #862F7D #B33FA7 #C966BF

Accessibility & contrast

On white

7.73
#862F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#862F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F7D
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F7D#FFFFFF#000000##FFFFFF
##862F7D1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B7F
Deuteranopia (green-blind)
#48577B
Tritanopia (blue-blind)
#8C3751
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #862f7d;
/* rgb */ color: rgb(134, 47, 125);
/* oklch */ color: oklch(46.1% 0.152 332.1);
Tailwind
colors: {
  custom: {
    50: '#ac6ea3',
    500: '#862f7d',
    950: '#000000',
  },
}
SCSS
$custom: #862f7d;
$custom-light: #ac6ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#862f7d",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 306.207,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46089,
    "c": 0.15207,
    "h": 332.1
  },
  "luminance": 0.08582
}

Semantic roles & 50–950 ramp

primary
#862F7D
secondary
#60B069
accent
#D85E50
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10080F
muted
#7F7B7F

Preview Lab

Preview with #862F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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