#862DBB#862DBB

#862DBB is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.211 H 309.1°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#862DBB
RGBrgb(134, 45, 187)
HSLhsl(278, 61%, 45%)
HSVhsv(278, 76%, 73%)
CMYKcmyk(28.3%, 75.9%, 0%, 26.7%)
CIE-LABlab(38.78, 59.96, -57.76)
CIE-LCHlch(38.78, 83.25, 316.07°)
OKLaboklab(49.92% 0.1332 -0.1639)
OKLCHoklch(49.92% 0.211 309.1)
XYZxyz(19.7377, 10.5333, 47.9974)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DBB #62BB2D
analogous
#3F2DBB #862DBB #BB2DA9
triadic
#862DBB #BB862D #2DBB86
tetradic
#862DBB #BB3F2D #62BB2D #2DA9BB
square
#862DBB #BB3F2D #62BB2D #2DA9BB
split-complementary
#862DBB #A9BB2D #2DBB3F
monochromatic
#3F1558 #63218A #862DBB #A350D5 #BD82E1

Accessibility & contrast

On white

6.76
#862DBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#862DBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862DBB
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DBB#FFFFFF#000000##FFFFFF
##862DBB1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #862dbb;
/* rgb */ color: rgb(134, 45, 187);
/* oklch */ color: oklch(49.9% 0.211 309.1);
Tailwind
colors: {
  custom: {
    50: '#ae6fd0',
    500: '#862dbb',
    950: '#000000',
  },
}
SCSS
$custom: #862dbb;
$custom-light: #ae6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#862dbb",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 187
  },
  "hsl": {
    "h": 277.606,
    "s": 61.207,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49922,
    "c": 0.21121,
    "h": 309.1
  },
  "luminance": 0.10533
}

Semantic roles & 50–950 ramp

primary
#862DBB
secondary
#98CA7A
accent
#E44380
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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