#862BBB#862BBB

#862BBB is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.7% C 0.213 H 309.3°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#862BBB
RGBrgb(134, 43, 187)
HSLhsl(278, 63%, 45%)
HSVhsv(278, 77%, 73%)
CMYKcmyk(28.3%, 77%, 0%, 26.7%)
CIE-LABlab(38.52, 60.70, -58.18)
CIE-LCHlch(38.52, 84.08, 316.21°)
OKLaboklab(49.74% 0.135 -0.1651)
OKLCHoklch(49.74% 0.213 309.3)
XYZxyz(19.6632, 10.3843, 47.9726)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862BBB #60BB2B
analogous
#3E2BBB #862BBB #BB2BA8
triadic
#862BBB #BB862B #2BBB86
tetradic
#862BBB #BB3E2B #60BB2B #2BA8BB
square
#862BBB #BB3E2B #60BB2B #2BA8BB
split-complementary
#862BBB #A8BB2B #2BBB3E
monochromatic
#3F1457 #622089 #862BBB #A44DD6 #BD7FE2

Accessibility & contrast

On white

6.83
#862BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #862BBB
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862BBB#FFFFFF#000000##FFFFFF
##862BBB1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #862bbb;
/* rgb */ color: rgb(134, 43, 187);
/* oklch */ color: oklch(49.7% 0.213 309.3);
Tailwind
colors: {
  custom: {
    50: '#ae6fd0',
    500: '#862bbb',
    950: '#000000',
  },
}
SCSS
$custom: #862bbb;
$custom-light: #ae6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#862bbb",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 187
  },
  "hsl": {
    "h": 277.917,
    "s": 62.609,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4974,
    "c": 0.21327,
    "h": 309.3
  },
  "luminance": 0.10384
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #862BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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