#862AB2#862AB2

#862AB2 is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.0% C 0.206 H 311.9°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#862AB2
RGBrgb(134, 42, 178)
HSLhsl(281, 62%, 43%)
HSVhsv(281, 76%, 70%)
CMYKcmyk(24.7%, 76.4%, 0%, 30.2%)
CIE-LABlab(37.73, 59.17, -54.14)
CIE-LCHlch(37.73, 80.20, 317.54°)
OKLaboklab(48.98% 0.1376 -0.1532)
OKLCHoklch(48.98% 0.206 311.9)
XYZxyz(18.6939, 9.9391, 43.0445)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AB2 #56B22A
analogous
#422AB2 #862AB2 #B22A9A
triadic
#862AB2 #B2862A #2AB286
tetradic
#862AB2 #B2422A #56B22A #2A9AB2
square
#862AB2 #B2422A #56B22A #2A9AB2
split-complementary
#862AB2 #9AB22A #2AB242
monochromatic
#3B134F #611E80 #862AB2 #A646D3 #BD77DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##862AB2#FFFFFF#000000##FFFFFF
##862AB21.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)
#0054B6
Deuteranopia (green-blind)
#125BAF
Tritanopia (blue-blind)
#814A6D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #862ab2;
/* rgb */ color: rgb(134, 42, 178);
/* oklch */ color: oklch(49.0% 0.206 311.9);
Tailwind
colors: {
  custom: {
    50: '#ae6eca',
    500: '#862ab2',
    950: '#000000',
  },
}
SCSS
$custom: #862ab2;
$custom-light: #ae6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#862ab2",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 280.588,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48975,
    "c": 0.20595,
    "h": 311.9
  },
  "luminance": 0.09939
}

Semantic roles & 50–950 ramp

primary
#862AB2
secondary
#8DC771
accent
#E54377
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #862AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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