#862FB6#862FB6

#862FB6 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.7% C 0.204 H 310.4°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#862FB6
RGBrgb(134, 47, 182)
HSLhsl(279, 59%, 45%)
HSVhsv(279, 74%, 71%)
CMYKcmyk(26.4%, 74.2%, 0%, 28.6%)
CIE-LABlab(38.69, 58.10, -54.96)
CIE-LCHlch(38.69, 79.98, 316.59°)
OKLaboklab(49.74% 0.1323 -0.1557)
OKLCHoklch(49.74% 0.204 310.4)
XYZxyz(19.2899, 10.4792, 45.2534)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FB6 #5FB62F
analogous
#432FB6 #862FB6 #B62FA2
triadic
#862FB6 #B6862F #2FB686
tetradic
#862FB6 #B6432F #5FB62F #2FA2B6
square
#862FB6 #B6432F #5FB62F #2FA2B6
split-complementary
#862FB6 #A2B62F #2FB643
monochromatic
#3E1655 #622285 #862FB6 #A450D2 #BD81DE

Accessibility & contrast

On white

6.78
#862FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#862FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862FB6
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FB6#FFFFFF#000000##FFFFFF
##862FB61.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#115CB3
Tritanopia (blue-blind)
#7F4E70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #862fb6;
/* rgb */ color: rgb(134, 47, 182);
/* oklch */ color: oklch(49.7% 0.204 310.4);
Tailwind
colors: {
  custom: {
    50: '#ae70cd',
    500: '#862fb6',
    950: '#000000',
  },
}
SCSS
$custom: #862fb6;
$custom-light: #ae70cd;
$custom-dark: #000000;
JSON
{
  "hex": "#862fb6",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 278.667,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49741,
    "c": 0.20432,
    "h": 310.4
  },
  "luminance": 0.10479
}

Semantic roles & 50–950 ramp

primary
#862FB6
secondary
#95C779
accent
#E2467D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #862FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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