#862DE2#862DE2

#862DE2 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 53.1% C 0.248 H 299.8°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#862DE2
RGBrgb(134, 45, 226)
HSLhsl(270, 76%, 53%)
HSVhsv(270, 80%, 89%)
CMYKcmyk(40.7%, 80.1%, 0%, 11.4%)
CIE-LABlab(41.90, 68.61, -75.25)
CIE-LCHlch(41.90, 101.84, 312.36°)
OKLaboklab(53.07% 0.1233 -0.2153)
OKLCHoklch(53.07% 0.248 299.8)
XYZxyz(24.4939, 12.4358, 73.0466)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DE2 #89E22D
analogous
#2D2EE2 #862DE2 #E12DE2
triadic
#862DE2 #E2862D #2DE286
tetradic
#862DE2 #E22D2E #89E22D #2DE2E1
square
#862DE2 #E22D2E #89E22D #2DE2E1
split-complementary
#862DE2 #E2E12D #2EE22D
monochromatic
#491283 #6819B8 #862DE2 #A563E9 #C499F1

Accessibility & contrast

On white

6.02
#862DE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#862DE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862DE2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DE2#FFFFFF#000000##FFFFFF
##862DE21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E7
Deuteranopia (green-blind)
#0061DF
Tritanopia (blue-blind)
#706089
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #862de2;
/* rgb */ color: rgb(134, 45, 226);
/* oklch */ color: oklch(53.1% 0.248 299.8);
Tailwind
colors: {
  custom: {
    50: '#b171ec',
    500: '#862de2',
    950: '#000000',
  },
}
SCSS
$custom: #862de2;
$custom-light: #b171ec;
$custom-dark: #000000;
JSON
{
  "hex": "#862de2",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 226
  },
  "hsl": {
    "h": 269.503,
    "s": 75.732,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53066,
    "c": 0.24809,
    "h": 299.8
  },
  "luminance": 0.12436
}

Semantic roles & 50–950 ramp

primary
#862DE2
secondary
#B6DC8E
accent
#F23595
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #862DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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