#862F9D#862F9D

#862F9D is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.0% C 0.181 H 318.4°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#862F9D
RGBrgb(134, 47, 157)
HSLhsl(287, 54%, 40%)
HSVhsv(287, 70%, 62%)
CMYKcmyk(14.6%, 70.1%, 0%, 38.4%)
CIE-LABlab(37.00, 52.91, -42.75)
CIE-LCHlch(37.00, 68.02, 321.06°)
OKLaboklab(48% 0.1352 -0.1199)
OKLCHoklch(48% 0.181 318.4)
XYZxyz(16.9330, 9.5364, 32.8405)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F9D #469D2F
analogous
#4F2F9D #862F9D #9D2F7D
triadic
#862F9D #9D862F #2F9D86
tetradic
#862F9D #9D4F2F #469D2F #2F7D9D
square
#862F9D #9D4F2F #469D2F #2F7D9D
split-complementary
#862F9D #7D9D2F #2F9D4F
monochromatic
#36133F #5E216E #862F9D #AB43C7 #C072D5

Accessibility & contrast

On white

7.22
#862F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#862F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F9D
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F9D#FFFFFF#000000##FFFFFF
##862F9D1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#355A9A
Tritanopia (blue-blind)
#864462
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862f9d;
/* rgb */ color: rgb(134, 47, 157);
/* oklch */ color: oklch(48.0% 0.181 318.4);
Tailwind
colors: {
  custom: {
    50: '#ad6fba',
    500: '#862f9d',
    950: '#000000',
  },
}
SCSS
$custom: #862f9d;
$custom-light: #ad6fba;
$custom-dark: #000000;
JSON
{
  "hex": "#862f9d",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 287.455,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.47999,
    "c": 0.18067,
    "h": 318.4
  },
  "luminance": 0.09536
}

Semantic roles & 50–950 ramp

primary
#862F9D
secondary
#7CBC6B
accent
#DD4B69
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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