#862B8B#862B8B

#862B8B is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.170 H 325.7°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#862B8B
RGBrgb(134, 43, 139)
HSLhsl(297, 53%, 36%)
HSVhsv(297, 69%, 55%)
CMYKcmyk(3.6%, 69.1%, 0%, 45.5%)
CIE-LABlab(35.32, 51.10, -34.44)
CIE-LCHlch(35.32, 61.62, 326.02°)
OKLaboklab(46.45% 0.1401 -0.0956)
OKLCHoklch(46.45% 0.17 325.7)
XYZxyz(15.3553, 8.6611, 25.2841)
Luminance0.0866 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862B8B #308B2B
analogous
#562B8B #862B8B #8B2B60
triadic
#862B8B #8B862B #2B8B86
tetradic
#862B8B #8B562B #308B2B #2B608B
square
#862B8B #8B562B #308B2B #2B608B
split-complementary
#862B8B #608B2B #2B8B56
monochromatic
#2C0E2E #591D5C #862B8B #B339BA #C962CE

Accessibility & contrast

On white

7.69
#862B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#862B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862B8B
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862B8B#FFFFFF#000000##FFFFFF
##862B8B1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174C8E
Deuteranopia (green-blind)
#3F5789
Tritanopia (blue-blind)
#893A57
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #862b8b;
/* rgb */ color: rgb(134, 43, 139);
/* oklch */ color: oklch(46.4% 0.170 325.7);
Tailwind
colors: {
  custom: {
    50: '#ac6dad',
    500: '#862b8b',
    950: '#000000',
  },
}
SCSS
$custom: #862b8b;
$custom-light: #ac6dad;
$custom-dark: #000000;
JSON
{
  "hex": "#862b8b",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 296.875,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46447,
    "c": 0.16957,
    "h": 325.7
  },
  "luminance": 0.0866
}

Semantic roles & 50–950 ramp

primary
#862B8B
secondary
#62B55D
accent
#DC4C53
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #862B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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