#862BC5#862BC5

#862BC5 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.5% C 0.223 H 306.6°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#862BC5
RGBrgb(134, 43, 197)
HSLhsl(275, 64%, 47%)
HSVhsv(275, 78%, 77%)
CMYKcmyk(32%, 78.2%, 0%, 22.7%)
CIE-LABlab(39.29, 62.86, -62.80)
CIE-LCHlch(39.29, 88.85, 315.03°)
OKLaboklab(50.52% 0.1327 -0.1787)
OKLCHoklch(50.52% 0.223 306.6)
XYZxyz(20.7712, 10.8275, 53.8082)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862BC5 #6AC52B
analogous
#392BC5 #862BC5 #C52BB7
triadic
#862BC5 #C5862B #2BC586
tetradic
#862BC5 #C5392B #6AC52B #2BB7C5
square
#862BC5 #C5392B #6AC52B #2BB7C5
split-complementary
#862BC5 #B7C52B #2BC539
monochromatic
#421561 #642093 #862BC5 #A354DA #BE86E5

Accessibility & contrast

On white

6.63
#862BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#862BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862BC5
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862BC5#FFFFFF#000000##FFFFFF
##862BC51.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#005DC2
Tritanopia (blue-blind)
#7B5378
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #862bc5;
/* rgb */ color: rgb(134, 43, 197);
/* oklch */ color: oklch(50.5% 0.223 306.6);
Tailwind
colors: {
  custom: {
    50: '#af6fd8',
    500: '#862bc5',
    950: '#000000',
  },
}
SCSS
$custom: #862bc5;
$custom-light: #af6fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#862bc5",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 197
  },
  "hsl": {
    "h": 275.455,
    "s": 64.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50515,
    "c": 0.22259,
    "h": 306.6
  },
  "luminance": 0.10827
}

Semantic roles & 50–950 ramp

primary
#862BC5
secondary
#9FCE7E
accent
#E74185
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #862BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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