#862DCA#862DCA

#862DCA is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 51.1% C 0.225 H 305.2°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#862DCA
RGBrgb(134, 45, 202)
HSLhsl(274, 64%, 48%)
HSVhsv(274, 78%, 79%)
CMYKcmyk(33.7%, 77.7%, 0%, 20.8%)
CIE-LABlab(39.93, 63.23, -64.66)
CIE-LCHlch(39.93, 90.44, 314.36°)
OKLaboklab(51.09% 0.1299 -0.1842)
OKLCHoklch(51.09% 0.225 305.2)
XYZxyz(21.4282, 11.2095, 56.9004)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DCA #71CA2D
analogous
#372DCA #862DCA #CA2DBF
triadic
#862DCA #CA862D #2DCA86
tetradic
#862DCA #CA372D #71CA2D #2DBFCA
square
#862DCA #CA372D #71CA2D #2DBFCA
split-complementary
#862DCA #BFCA2D #2DCA37
monochromatic
#441766 #652298 #862DCA #A35ADA #BF8CE5

Accessibility & contrast

On white

6.48
#862DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#862DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862DCA
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DCA#FFFFFF#000000##FFFFFF
##862DCA1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#005EC7
Tritanopia (blue-blind)
#79567B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #862dca;
/* rgb */ color: rgb(134, 45, 202);
/* oklch */ color: oklch(51.1% 0.225 305.2);
Tailwind
colors: {
  custom: {
    50: '#af70db',
    500: '#862dca',
    950: '#000000',
  },
}
SCSS
$custom: #862dca;
$custom-light: #af70db;
$custom-dark: #000000;
JSON
{
  "hex": "#862dca",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 274.013,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51087,
    "c": 0.22539,
    "h": 305.2
  },
  "luminance": 0.11209
}

Semantic roles & 50–950 ramp

primary
#862DCA
secondary
#A4CF83
accent
#E74189
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #862DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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