#862F8D#862F8D

#862F8D is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.166 H 324.7°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#862F8D
RGBrgb(134, 47, 141)
HSLhsl(296, 50%, 37%)
HSVhsv(296, 67%, 55%)
CMYKcmyk(5%, 66.7%, 0%, 44.7%)
CIE-LABlab(36.03, 49.80, -34.54)
CIE-LCHlch(36.03, 60.61, 325.25°)
OKLaboklab(47% 0.1355 -0.0959)
OKLCHoklch(47% 0.166 324.7)
XYZxyz(15.6554, 9.0254, 26.1116)
Luminance0.0902 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F8D #368D2F
analogous
#572F8D #862F8D #8D2F65
triadic
#862F8D #8D862F #2F8D86
tetradic
#862F8D #8D572F #368D2F #2F658D
square
#862F8D #8D572F #368D2F #2F658D
split-complementary
#862F8D #658D2F #2F8D57
monochromatic
#2F1031 #5A205F #862F8D #B23EBB #C669CD

Accessibility & contrast

On white

7.49
#862F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#862F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F8D
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F8D#FFFFFF#000000##FFFFFF
##862F8D1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4E90
Deuteranopia (green-blind)
#40588B
Tritanopia (blue-blind)
#893D5A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #862f8d;
/* rgb */ color: rgb(134, 47, 141);
/* oklch */ color: oklch(47.0% 0.166 324.7);
Tailwind
colors: {
  custom: {
    50: '#ac6faf',
    500: '#862f8d',
    950: '#000000',
  },
}
SCSS
$custom: #862f8d;
$custom-light: #ac6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#862f8d",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 295.532,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46996,
    "c": 0.16599,
    "h": 324.7
  },
  "luminance": 0.09024
}

Semantic roles & 50–950 ramp

primary
#862F8D
secondary
#6AB464
accent
#DA4E59
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #862F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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