#862EA8#862EA8

#862EA8 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.6% C 0.192 H 314.7°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#862EA8
RGBrgb(134, 46, 168)
HSLhsl(283, 57%, 42%)
HSVhsv(283, 73%, 66%)
CMYKcmyk(20.2%, 72.6%, 0%, 34.1%)
CIE-LABlab(37.57, 55.55, -48.44)
CIE-LCHlch(37.57, 73.71, 318.91°)
OKLaboklab(48.64% 0.1353 -0.1365)
OKLCHoklch(48.64% 0.192 314.7)
XYZxyz(17.8752, 9.8501, 37.9979)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EA8 #50A82E
analogous
#492EA8 #862EA8 #A82E8D
triadic
#862EA8 #A8862E #2EA886
tetradic
#862EA8 #A8492E #50A82E #2E8DA8
square
#862EA8 #A8492E #50A82E #2E8DA8
split-complementary
#862EA8 #8DA82E #2EA849
monochromatic
#391448 #602178 #862EA8 #A747CD #BE77DA

Accessibility & contrast

On white

7.07
#862EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#862EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862EA8
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862EA8#FFFFFF#000000##FFFFFF
##862EA81.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#295BA5
Tritanopia (blue-blind)
#834868
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #862ea8;
/* rgb */ color: rgb(134, 46, 168);
/* oklch */ color: oklch(48.6% 0.192 314.7);
Tailwind
colors: {
  custom: {
    50: '#ad6fc2',
    500: '#862ea8',
    950: '#000000',
  },
}
SCSS
$custom: #862ea8;
$custom-light: #ad6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#862ea8",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 283.279,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48639,
    "c": 0.19221,
    "h": 314.7
  },
  "luminance": 0.09849
}

Semantic roles & 50–950 ramp

primary
#862EA8
secondary
#87C270
accent
#E04872
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #862EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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