#862CBB#862CBB

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

Color values

HEX#862CBB
RGBrgb(134, 44, 187)
HSLhsl(278, 62%, 45%)
HSVhsv(278, 76%, 73%)
CMYKcmyk(28.3%, 76.5%, 0%, 26.7%)
CIE-LABlab(38.65, 60.33, -57.97)
CIE-LCHlch(38.65, 83.67, 316.14°)
OKLaboklab(49.83% 0.1341 -0.1645)
OKLCHoklch(49.83% 0.212 309.2)
XYZxyz(19.7000, 10.4579, 47.9849)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862CBB #61BB2C
analogous
#3E2CBB #862CBB #BB2CA9
triadic
#862CBB #BB862C #2CBB86
tetradic
#862CBB #BB3E2C #61BB2C #2CA9BB
square
#862CBB #BB3E2C #61BB2C #2CA9BB
split-complementary
#862CBB #A9BB2C #2CBB3E
monochromatic
#3F1558 #622089 #862CBB #A44FD6 #BD80E1

Accessibility & contrast

On white

6.79
#862CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#862CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862CBB
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862CBB#FFFFFF#000000##FFFFFF
##862CBB1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#7E4F72
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #862cbb;
/* rgb */ color: rgb(134, 44, 187);
/* oklch */ color: oklch(49.8% 0.212 309.2);
Tailwind
colors: {
  custom: {
    50: '#ae6fd0',
    500: '#862cbb',
    950: '#000000',
  },
}
SCSS
$custom: #862cbb;
$custom-light: #ae6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#862cbb",
  "rgb": {
    "r": 134,
    "g": 44,
    "b": 187
  },
  "hsl": {
    "h": 277.762,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4983,
    "c": 0.21225,
    "h": 309.2
  },
  "luminance": 0.10458
}

Semantic roles & 50–950 ramp

primary
#862CBB
secondary
#97CA79
accent
#E5437F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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