#862FA8#862FA8

#862FA8 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.7% C 0.191 H 314.7°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#862FA8
RGBrgb(134, 47, 168)
HSLhsl(283, 56%, 42%)
HSVhsv(283, 72%, 66%)
CMYKcmyk(20.2%, 72%, 0%, 34.1%)
CIE-LABlab(37.71, 55.15, -48.21)
CIE-LCHlch(37.71, 73.25, 318.84°)
OKLaboklab(48.74% 0.1343 -0.1359)
OKLCHoklch(48.74% 0.191 314.7)
XYZxyz(17.9147, 9.9291, 38.0110)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FA8 #51A82F
analogous
#492FA8 #862FA8 #A82F8E
triadic
#862FA8 #A8862F #2FA886
tetradic
#862FA8 #A8492F #51A82F #2F8EA8
square
#862FA8 #A8492F #51A82F #2F8EA8
split-complementary
#862FA8 #8EA82F #2FA849
monochromatic
#3A1448 #602278 #862FA8 #A748CC #BE78D9

Accessibility & contrast

On white

7.03
#862FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#862FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862FA8
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FA8#FFFFFF#000000##FFFFFF
##862FA81.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#2A5BA5
Tritanopia (blue-blind)
#834868
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #862fa8;
/* rgb */ color: rgb(134, 47, 168);
/* oklch */ color: oklch(48.7% 0.191 314.7);
Tailwind
colors: {
  custom: {
    50: '#ad70c2',
    500: '#862fa8',
    950: '#000000',
  },
}
SCSS
$custom: #862fa8;
$custom-light: #ad70c2;
$custom-dark: #000000;
JSON
{
  "hex": "#862fa8",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 283.14,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48741,
    "c": 0.19101,
    "h": 314.7
  },
  "luminance": 0.09929
}

Semantic roles & 50–950 ramp

primary
#862FA8
secondary
#88C171
accent
#E04873
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #862FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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