#862EBB#862EBB

#862EBB is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.210 H 309.0°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#862EBB
RGBrgb(134, 46, 187)
HSLhsl(277, 61%, 46%)
HSVhsv(277, 75%, 73%)
CMYKcmyk(28.3%, 75.4%, 0%, 26.7%)
CIE-LABlab(38.92, 59.57, -57.54)
CIE-LCHlch(38.92, 82.83, 315.99°)
OKLaboklab(50.02% 0.1323 -0.1633)
OKLCHoklch(50.02% 0.21 309)
XYZxyz(19.7763, 10.6105, 48.0103)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EBB #63BB2E
analogous
#402EBB #862EBB #BB2EA9
triadic
#862EBB #BB862E #2EBB86
tetradic
#862EBB #BB402E #63BB2E #2EA9BB
square
#862EBB #BB402E #63BB2E #2EA9BB
split-complementary
#862EBB #A9BB2E #2EBB40
monochromatic
#401659 #63228A #862EBB #A352D4 #BD83E0

Accessibility & contrast

On white

6.73
#862EBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#862EBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862EBB
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862EBB#FFFFFF#000000##FFFFFF
##862EBB1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#7E5073
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #862ebb;
/* rgb */ color: rgb(134, 46, 187);
/* oklch */ color: oklch(50.0% 0.210 309.0);
Tailwind
colors: {
  custom: {
    50: '#ae70d0',
    500: '#862ebb',
    950: '#000000',
  },
}
SCSS
$custom: #862ebb;
$custom-light: #ae70d0;
$custom-dark: #000000;
JSON
{
  "hex": "#862ebb",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 187
  },
  "hsl": {
    "h": 277.447,
    "s": 60.515,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50017,
    "c": 0.21016,
    "h": 309
  },
  "luminance": 0.1061
}

Semantic roles & 50–950 ramp

primary
#862EBB
secondary
#99CA7B
accent
#E44480
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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