#862FB5#862FB5

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

Color values

HEX#862FB5
RGBrgb(134, 47, 181)
HSLhsl(279, 59%, 45%)
HSVhsv(279, 74%, 71%)
CMYKcmyk(26%, 74%, 0%, 29%)
CIE-LABlab(38.62, 57.89, -54.49)
CIE-LCHlch(38.62, 79.50, 316.73°)
OKLaboklab(49.67% 0.1325 -0.1543)
OKLCHoklch(49.67% 0.203 310.6)
XYZxyz(19.1869, 10.4380, 44.7111)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FB5 #5EB52F
analogous
#432FB5 #862FB5 #B52FA1
triadic
#862FB5 #B5862F #2FB586
tetradic
#862FB5 #B5432F #5EB52F #2FA1B5
square
#862FB5 #B5432F #5EB52F #2FA1B5
split-complementary
#862FB5 #A1B52F #2FB543
monochromatic
#3E1654 #622284 #862FB5 #A450D1 #BD80DE

Accessibility & contrast

On white

6.80
#862FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#862FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862FB5
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FB5#FFFFFF#000000##FFFFFF
##862FB51.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#135CB2
Tritanopia (blue-blind)
#804E70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #862fb5;
/* rgb */ color: rgb(134, 47, 181);
/* oklch */ color: oklch(49.7% 0.203 310.6);
Tailwind
colors: {
  custom: {
    50: '#ae70cc',
    500: '#862fb5',
    950: '#000000',
  },
}
SCSS
$custom: #862fb5;
$custom-light: #ae70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#862fb5",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 278.955,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49668,
    "c": 0.20336,
    "h": 310.6
  },
  "luminance": 0.10438
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #862FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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