#862F97#862F97

#862F97 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.175 H 320.7°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#862F97
RGBrgb(134, 47, 151)
HSLhsl(290, 53%, 39%)
HSVhsv(290, 69%, 59%)
CMYKcmyk(11.3%, 68.9%, 0%, 40.8%)
CIE-LABlab(36.62, 51.72, -39.71)
CIE-LCHlch(36.62, 65.20, 322.48°)
OKLaboklab(47.61% 0.1354 -0.111)
OKLCHoklch(47.61% 0.175 320.7)
XYZxyz(16.4333, 9.3366, 30.2087)
Luminance0.0934 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F97 #40972F
analogous
#522F97 #862F97 #972F74
triadic
#862F97 #97862F #2F9786
tetradic
#862F97 #97522F #40972F #2F7497
square
#862F97 #97522F #40972F #2F7497
split-complementary
#862F97 #74972F #2F9752
monochromatic
#33123A #5D2068 #862F97 #AE40C3 #C26ED2

Accessibility & contrast

On white

7.32
#862F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#862F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F97
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F97#FFFFFF#000000##FFFFFF
##862F971.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09509A
Deuteranopia (green-blind)
#395994
Tritanopia (blue-blind)
#87415F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862f97;
/* rgb */ color: rgb(134, 47, 151);
/* oklch */ color: oklch(47.6% 0.175 320.7);
Tailwind
colors: {
  custom: {
    50: '#ac6fb6',
    500: '#862f97',
    950: '#000000',
  },
}
SCSS
$custom: #862f97;
$custom-light: #ac6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#862f97",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 290.192,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.47612,
    "c": 0.1751,
    "h": 320.7
  },
  "luminance": 0.09336
}

Semantic roles & 50–950 ramp

primary
#862F97
secondary
#76B968
accent
#DC4C63
background
#FAF7FB
surface
#F5EDF6
border
#CFC8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #862F97

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

Preview Lab → · Contrast checker → · Palette generator →

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