#862DA0#862DA0

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

Color values

HEX#862DA0
RGBrgb(134, 45, 160)
HSLhsl(286, 56%, 40%)
HSVhsv(286, 72%, 63%)
CMYKcmyk(16.2%, 71.9%, 0%, 37.3%)
CIE-LABlab(36.90, 54.33, -44.72)
CIE-LCHlch(36.90, 70.36, 320.54°)
OKLaboklab(47.99% 0.1371 -0.1256)
OKLCHoklch(47.99% 0.186 317.5)
XYZxyz(17.1142, 9.4839, 34.1800)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DA0 #47A02D
analogous
#4D2DA0 #862DA0 #A02D80
triadic
#862DA0 #A0862D #2DA086
tetradic
#862DA0 #A04D2D #47A02D #2D80A0
square
#862DA0 #A04D2D #47A02D #2D80A0
split-complementary
#862DA0 #80A02D #2DA04D
monochromatic
#361240 #5E2070 #862DA0 #AB41C9 #C070D7

Accessibility & contrast

On white

7.25
#862DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#862DA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862DA0
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DA0#FFFFFF#000000##FFFFFF
##862DA01.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A3
Deuteranopia (green-blind)
#305A9D
Tritanopia (blue-blind)
#854464
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862da0;
/* rgb */ color: rgb(134, 45, 160);
/* oklch */ color: oklch(48.0% 0.186 317.5);
Tailwind
colors: {
  custom: {
    50: '#ad6ebd',
    500: '#862da0',
    950: '#000000',
  },
}
SCSS
$custom: #862da0;
$custom-light: #ad6ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#862da0",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 160
  },
  "hsl": {
    "h": 286.435,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47991,
    "c": 0.18595,
    "h": 317.5
  },
  "luminance": 0.09483
}

Semantic roles & 50–950 ramp

primary
#862DA0
secondary
#7DBE6B
accent
#DF486B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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