#862CBA#862CBA

#862CBA is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.211 H 309.5°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#862CBA
RGBrgb(134, 44, 186)
HSLhsl(278, 62%, 45%)
HSVhsv(278, 76%, 73%)
CMYKcmyk(28%, 76.3%, 0%, 27.1%)
CIE-LABlab(38.58, 60.12, -57.50)
CIE-LCHlch(38.58, 83.19, 316.27°)
OKLaboklab(49.75% 0.1343 -0.1631)
OKLCHoklch(49.75% 0.211 309.5)
XYZxyz(19.5933, 10.4153, 47.4230)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862CBA #60BA2C
analogous
#3F2CBA #862CBA #BA2CA7
triadic
#862CBA #BA862C #2CBA86
tetradic
#862CBA #BA3F2C #60BA2C #2CA7BA
square
#862CBA #BA3F2C #60BA2C #2CA7BA
split-complementary
#862CBA #A7BA2C #2CBA3F
monochromatic
#3F1557 #622089 #862CBA #A44ED5 #BD80E1

Accessibility & contrast

On white

6.81
#862CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#862CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862CBA
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862CBA#FFFFFF#000000##FFFFFF
##862CBA1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #862cba;
/* rgb */ color: rgb(134, 44, 186);
/* oklch */ color: oklch(49.8% 0.211 309.5);
Tailwind
colors: {
  custom: {
    50: '#ae6fd0',
    500: '#862cba',
    950: '#000000',
  },
}
SCSS
$custom: #862cba;
$custom-light: #ae6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#862cba",
  "rgb": {
    "r": 134,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 278.028,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49754,
    "c": 0.21131,
    "h": 309.5
  },
  "luminance": 0.10415
}

Semantic roles & 50–950 ramp

primary
#862CBA
secondary
#96CA78
accent
#E5437E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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