#862DC8#862DC8

#862DC8 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.9% C 0.223 H 305.7°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#862DC8
RGBrgb(134, 45, 200)
HSLhsl(274, 63%, 48%)
HSVhsv(274, 78%, 78%)
CMYKcmyk(33%, 77.5%, 0%, 21.6%)
CIE-LABlab(39.77, 62.79, -63.75)
CIE-LCHlch(39.77, 89.48, 314.56°)
OKLaboklab(50.93% 0.1304 -0.1815)
OKLCHoklch(50.93% 0.223 305.7)
XYZxyz(21.1929, 11.1154, 55.6614)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DC8 #6FC82D
analogous
#392DC8 #862DC8 #C82DBC
triadic
#862DC8 #C8862D #2DC886
tetradic
#862DC8 #C8392D #6FC82D #2DBCC8
square
#862DC8 #C8392D #6FC82D #2DBCC8
split-complementary
#862DC8 #BCC82D #2DC839
monochromatic
#431764 #652296 #862DC8 #A359DA #BE8BE5

Accessibility & contrast

On white

6.52
#862DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#862DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862DC8
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DC8#FFFFFF#000000##FFFFFF
##862DC81.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#7A557A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #862dc8;
/* rgb */ color: rgb(134, 45, 200);
/* oklch */ color: oklch(50.9% 0.223 305.7);
Tailwind
colors: {
  custom: {
    50: '#af70da',
    500: '#862dc8',
    950: '#000000',
  },
}
SCSS
$custom: #862dc8;
$custom-light: #af70da;
$custom-dark: #000000;
JSON
{
  "hex": "#862dc8",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 274.452,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50928,
    "c": 0.22349,
    "h": 305.7
  },
  "luminance": 0.11115
}

Semantic roles & 50–950 ramp

primary
#862DC8
secondary
#A3CF82
accent
#E64188
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #862DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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