#862F9A#862F9A

#862F9A is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.178 H 319.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#862F9A
RGBrgb(134, 47, 154)
HSLhsl(289, 53%, 39%)
HSVhsv(289, 69%, 60%)
CMYKcmyk(13%, 69.5%, 0%, 39.6%)
CIE-LABlab(36.81, 52.31, -41.24)
CIE-LCHlch(36.81, 66.61, 321.75°)
OKLaboklab(47.8% 0.1353 -0.1154)
OKLCHoklch(47.8% 0.178 319.5)
XYZxyz(16.6800, 9.4353, 31.5082)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F9A #439A2F
analogous
#512F9A #862F9A #9A2F79
triadic
#862F9A #9A862F #2F9A86
tetradic
#862F9A #9A512F #439A2F #2F799A
square
#862F9A #9A512F #439A2F #2F799A
split-complementary
#862F9A #799A2F #2F9A51
monochromatic
#34123C #5D216B #862F9A #AC41C5 #C170D3

Accessibility & contrast

On white

7.27
#862F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#862F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F9A
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F9A#FFFFFF#000000##FFFFFF
##862F9A1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519D
Deuteranopia (green-blind)
#375A97
Tritanopia (blue-blind)
#864361
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862f9a;
/* rgb */ color: rgb(134, 47, 154);
/* oklch */ color: oklch(47.8% 0.178 319.5);
Tailwind
colors: {
  custom: {
    50: '#ac6fb8',
    500: '#862f9a',
    950: '#000000',
  },
}
SCSS
$custom: #862f9a;
$custom-light: #ac6fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#862f9a",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 288.785,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.47804,
    "c": 0.17788,
    "h": 319.5
  },
  "luminance": 0.09434
}

Semantic roles & 50–950 ramp

primary
#862F9A
secondary
#79BB6A
accent
#DD4B66
background
#FAF7FB
surface
#F5EDF6
border
#CFC8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #862F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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