#862AC5#862AC5

#862AC5 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.4% C 0.224 H 306.7°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#862AC5
RGBrgb(134, 42, 197)
HSLhsl(276, 65%, 47%)
HSVhsv(276, 79%, 77%)
CMYKcmyk(32%, 78.7%, 0%, 22.7%)
CIE-LABlab(39.17, 63.21, -63.00)
CIE-LCHlch(39.17, 89.24, 315.10°)
OKLaboklab(50.43% 0.1335 -0.1793)
OKLCHoklch(50.43% 0.224 306.7)
XYZxyz(20.7353, 10.7557, 53.7962)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AC5 #69C52A
analogous
#392AC5 #862AC5 #C52AB7
triadic
#862AC5 #C5862A #2AC586
tetradic
#862AC5 #C5392A #69C52A #2AB7C5
square
#862AC5 #C5392A #69C52A #2AB7C5
split-complementary
#862AC5 #B7C52A #2AC539
monochromatic
#411460 #641F93 #862AC5 #A352DA #BE85E5

Accessibility & contrast

On white

6.66
#862AC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#862AC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862AC5
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862AC5#FFFFFF#000000##FFFFFF
##862AC51.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#005DC2
Tritanopia (blue-blind)
#7B5278
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #862ac5;
/* rgb */ color: rgb(134, 42, 197);
/* oklch */ color: oklch(50.4% 0.224 306.7);
Tailwind
colors: {
  custom: {
    50: '#af6fd8',
    500: '#862ac5',
    950: '#000000',
  },
}
SCSS
$custom: #862ac5;
$custom-light: #af6fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#862ac5",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 197
  },
  "hsl": {
    "h": 275.613,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5043,
    "c": 0.22353,
    "h": 306.7
  },
  "luminance": 0.10755
}

Semantic roles & 50–950 ramp

primary
#862AC5
secondary
#9ECE7D
accent
#E84084
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #862AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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