#862FB4#862FB4

#862FB4 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.6% C 0.202 H 310.9°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#862FB4
RGBrgb(134, 47, 180)
HSLhsl(279, 59%, 45%)
HSVhsv(279, 74%, 71%)
CMYKcmyk(25.6%, 73.9%, 0%, 29.4%)
CIE-LABlab(38.55, 57.68, -54.01)
CIE-LCHlch(38.55, 79.02, 316.88°)
OKLaboklab(49.6% 0.1326 -0.1529)
OKLCHoklch(49.6% 0.202 310.9)
XYZxyz(19.0847, 10.3971, 44.1727)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FB4 #5DB42F
analogous
#442FB4 #862FB4 #B42FA0
triadic
#862FB4 #B4862F #2FB486
tetradic
#862FB4 #B4442F #5DB42F #2FA0B4
square
#862FB4 #B4442F #5DB42F #2FA0B4
split-complementary
#862FB4 #A0B42F #2FB444
monochromatic
#3E1653 #622283 #862FB4 #A44FD1 #BD80DE

Accessibility & contrast

On white

6.82
#862FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #862FB4
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FB4#FFFFFF#000000##FFFFFF
##862FB41.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#165CB1
Tritanopia (blue-blind)
#804D6F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #862fb4;
/* rgb */ color: rgb(134, 47, 180);
/* oklch */ color: oklch(49.6% 0.202 310.9);
Tailwind
colors: {
  custom: {
    50: '#ae70cb',
    500: '#862fb4',
    950: '#000000',
  },
}
SCSS
$custom: #862fb4;
$custom-light: #ae70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#862fb4",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 279.248,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49595,
    "c": 0.20241,
    "h": 310.9
  },
  "luminance": 0.10397
}

Semantic roles & 50–950 ramp

primary
#862FB4
secondary
#93C778
accent
#E2467C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #862FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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