#862DBC#862DBC

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

Color values

HEX#862DBC
RGBrgb(134, 45, 188)
HSLhsl(277, 61%, 46%)
HSVhsv(277, 76%, 74%)
CMYKcmyk(28.7%, 76.1%, 0%, 26.3%)
CIE-LABlab(38.86, 60.17, -58.23)
CIE-LCHlch(38.86, 83.73, 315.94°)
OKLaboklab(50% 0.133 -0.1653)
OKLCHoklch(50% 0.212 308.8)
XYZxyz(19.8451, 10.5763, 48.5632)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DBC #63BC2D
analogous
#3F2DBC #862DBC #BC2DAA
triadic
#862DBC #BC862D #2DBC86
tetradic
#862DBC #BC3F2D #63BC2D #2DAABC
square
#862DBC #BC3F2D #63BC2D #2DAABC
split-complementary
#862DBC #AABC2D #2DBC3F
monochromatic
#401559 #63218B #862DBC #A351D5 #BD82E1

Accessibility & contrast

On white

6.74
#862DBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #862DBC
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DBC#FFFFFF#000000##FFFFFF
##862DBC1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#7E5073
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #862dbc;
/* rgb */ color: rgb(134, 45, 188);
/* oklch */ color: oklch(50.0% 0.212 308.8);
Tailwind
colors: {
  custom: {
    50: '#ae70d1',
    500: '#862dbc',
    950: '#000000',
  },
}
SCSS
$custom: #862dbc;
$custom-light: #ae70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#862dbc",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 188
  },
  "hsl": {
    "h": 277.343,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49998,
    "c": 0.21215,
    "h": 308.8
  },
  "luminance": 0.10576
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #862DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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