#862D9F#862D9F

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

Color values

HEX#862D9F
RGBrgb(134, 45, 159)
HSLhsl(287, 56%, 40%)
HSVhsv(287, 72%, 62%)
CMYKcmyk(15.7%, 71.7%, 0%, 37.6%)
CIE-LABlab(36.84, 54.13, -44.22)
CIE-LCHlch(36.84, 69.89, 320.75°)
OKLaboklab(47.92% 0.1372 -0.1242)
OKLCHoklch(47.92% 0.185 317.9)
XYZxyz(17.0270, 9.4491, 33.7211)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D9F #469F2D
analogous
#4D2D9F #862D9F #9F2D7F
triadic
#862D9F #9F862D #2D9F86
tetradic
#862D9F #9F4D2D #469F2D #2D7F9F
square
#862D9F #9F4D2D #469F2D #2D7F9F
split-complementary
#862D9F #7F9F2D #2D9F4D
monochromatic
#361240 #5E206F #862D9F #AB40C9 #C070D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##862D9F#FFFFFF#000000##FFFFFF
##862D9F1.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)
#0051A2
Deuteranopia (green-blind)
#31599C
Tritanopia (blue-blind)
#854363
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862d9f;
/* rgb */ color: rgb(134, 45, 159);
/* oklch */ color: oklch(47.9% 0.185 317.9);
Tailwind
colors: {
  custom: {
    50: '#ad6ebc',
    500: '#862d9f',
    950: '#000000',
  },
}
SCSS
$custom: #862d9f;
$custom-light: #ad6ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#862d9f",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 286.842,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.47924,
    "c": 0.18502,
    "h": 317.9
  },
  "luminance": 0.09448
}

Semantic roles & 50–950 ramp

primary
#862D9F
secondary
#7CBE6A
accent
#DF496A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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