#862B8E#862B8E

#862B8E is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.172 H 324.4°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#862B8E
RGBrgb(134, 43, 142)
HSLhsl(295, 54%, 36%)
HSVhsv(295, 70%, 56%)
CMYKcmyk(5.6%, 69.7%, 0%, 44.3%)
CIE-LABlab(35.50, 51.65, -36.01)
CIE-LCHlch(35.50, 62.96, 325.12°)
OKLaboklab(46.63% 0.1401 -0.1001)
OKLCHoklch(46.63% 0.172 324.4)
XYZxyz(15.5775, 8.7500, 26.4544)
Luminance0.0875 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862B8E #338E2B
analogous
#552B8E #862B8E #8E2B65
triadic
#862B8E #8E862B #2B8E86
tetradic
#862B8E #8E552B #338E2B #2B658E
square
#862B8E #8E552B #338E2B #2B658E
split-complementary
#862B8E #658E2B #2B8E55
monochromatic
#2D0F30 #5A1D5F #862B8E #B239BD #C763D0

Accessibility & contrast

On white

7.64
#862B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#862B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862B8E
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862B8E#FFFFFF#000000##FFFFFF
##862B8E1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134C91
Deuteranopia (green-blind)
#3D578C
Tritanopia (blue-blind)
#893B59
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #862b8e;
/* rgb */ color: rgb(134, 43, 142);
/* oklch */ color: oklch(46.6% 0.172 324.4);
Tailwind
colors: {
  custom: {
    50: '#ac6daf',
    500: '#862b8e',
    950: '#000000',
  },
}
SCSS
$custom: #862b8e;
$custom-light: #ac6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#862b8e",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 295.152,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46629,
    "c": 0.17218,
    "h": 324.4
  },
  "luminance": 0.08749
}

Semantic roles & 50–950 ramp

primary
#862B8E
secondary
#66B65F
accent
#DD4B57
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #862B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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