#862EB8#862EB8

#862EB8 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.8% C 0.207 H 309.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#862EB8
RGBrgb(134, 46, 184)
HSLhsl(278, 60%, 45%)
HSVhsv(278, 75%, 72%)
CMYKcmyk(27.2%, 75%, 0%, 27.8%)
CIE-LABlab(38.70, 58.93, -56.13)
CIE-LCHlch(38.70, 81.38, 316.39°)
OKLaboklab(49.79% 0.1329 -0.1591)
OKLCHoklch(49.79% 0.207 309.9)
XYZxyz(19.4585, 10.4834, 46.3366)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EB8 #60B82E
analogous
#412EB8 #862EB8 #B82EA5
triadic
#862EB8 #B8862E #2EB886
tetradic
#862EB8 #B8412E #60B82E #2EA5B8
square
#862EB8 #B8412E #60B82E #2EA5B8
split-complementary
#862EB8 #A5B82E #2EB841
monochromatic
#3F1656 #622287 #862EB8 #A450D3 #BD81DF

Accessibility & contrast

On white

6.78
#862EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#862EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862EB8
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862EB8#FFFFFF#000000##FFFFFF
##862EB81.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#065CB5
Tritanopia (blue-blind)
#7F4F71
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #862eb8;
/* rgb */ color: rgb(134, 46, 184);
/* oklch */ color: oklch(49.8% 0.207 309.9);
Tailwind
colors: {
  custom: {
    50: '#ae70ce',
    500: '#862eb8',
    950: '#000000',
  },
}
SCSS
$custom: #862eb8;
$custom-light: #ae70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#862eb8",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 278.261,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49792,
    "c": 0.20731,
    "h": 309.9
  },
  "luminance": 0.10483
}

Semantic roles & 50–950 ramp

primary
#862EB8
secondary
#96C879
accent
#E3457E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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