#862F9F#862F9F

#862F9F is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.1% C 0.183 H 317.7°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#862F9F
RGBrgb(134, 47, 159)
HSLhsl(287, 54%, 40%)
HSVhsv(287, 70%, 62%)
CMYKcmyk(15.7%, 70.4%, 0%, 37.6%)
CIE-LABlab(37.12, 53.31, -43.76)
CIE-LCHlch(37.12, 68.97, 320.62°)
OKLaboklab(48.13% 0.1351 -0.1228)
OKLCHoklch(48.13% 0.183 317.7)
XYZxyz(17.1051, 9.6053, 33.7472)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F9F #489F2F
analogous
#4E2F9F #862F9F #9F2F80
triadic
#862F9F #9F862F #2F9F86
tetradic
#862F9F #9F4E2F #489F2F #2F809F
square
#862F9F #9F4E2F #489F2F #2F809F
split-complementary
#862F9F #809F2F #2F9F4E
monochromatic
#361341 #5E2170 #862F9F #AA44C8 #C073D6

Accessibility & contrast

On white

7.19
#862F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#862F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F9F
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F9F#FFFFFF#000000##FFFFFF
##862F9F1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A2
Deuteranopia (green-blind)
#335A9C
Tritanopia (blue-blind)
#854564
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862f9f;
/* rgb */ color: rgb(134, 47, 159);
/* oklch */ color: oklch(48.1% 0.183 317.7);
Tailwind
colors: {
  custom: {
    50: '#ad6fbc',
    500: '#862f9f',
    950: '#000000',
  },
}
SCSS
$custom: #862f9f;
$custom-light: #ad6fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#862f9f",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 286.607,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48131,
    "c": 0.18254,
    "h": 317.7
  },
  "luminance": 0.09605
}

Semantic roles & 50–950 ramp

primary
#862F9F
secondary
#7FBD6D
accent
#DE4A6B
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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