#862F7B#862F7B

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

Color values

HEX#862F7B
RGBrgb(134, 47, 123)
HSLhsl(308, 48%, 35%)
HSVhsv(308, 65%, 53%)
CMYKcmyk(0%, 64.9%, 8.2%, 47.5%)
CIE-LABlab(35.07, 46.57, -24.92)
CIE-LCHlch(35.07, 52.82, 331.85°)
OKLaboklab(45.98% 0.1341 -0.0681)
OKLCHoklch(45.98% 0.15 333.1)
XYZxyz(14.4232, 8.5325, 19.6223)
Luminance0.0853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F7B #2F863A
analogous
#652F86 #862F7B #862F4F
triadic
#862F7B #7B862F #2F7B86
tetradic
#862F7B #86652F #2F863A #2F4F86
square
#862F7B #86652F #2F863A #2F4F86
split-complementary
#862F7B #4F862F #2F8665
monochromatic
#2B0F28 #591F51 #862F7B #B33FA5 #C966BD

Accessibility & contrast

On white

7.76
#862F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#862F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F7B
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F7B#FFFFFF#000000##FFFFFF
##862F7B1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4A7D
Deuteranopia (green-blind)
#495779
Tritanopia (blue-blind)
#8C3650
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862f7b;
/* rgb */ color: rgb(134, 47, 123);
/* oklch */ color: oklch(46.0% 0.150 333.1);
Tailwind
colors: {
  custom: {
    50: '#ac6ea1',
    500: '#862f7b',
    950: '#000000',
  },
}
SCSS
$custom: #862f7b;
$custom-light: #ac6ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#862f7b",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 307.586,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45983,
    "c": 0.15042,
    "h": 333.1
  },
  "luminance": 0.08531
}

Semantic roles & 50–950 ramp

primary
#862F7B
secondary
#60B06B
accent
#D86150
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10080F
muted
#7F7B7E

Preview Lab

Preview with #862F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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