#862FB7#862FB7

#862FB7 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.8% C 0.205 H 310.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#862FB7
RGBrgb(134, 47, 183)
HSLhsl(278, 59%, 45%)
HSVhsv(278, 74%, 72%)
CMYKcmyk(26.8%, 74.3%, 0%, 28.2%)
CIE-LABlab(38.76, 58.32, -55.44)
CIE-LCHlch(38.76, 80.46, 316.45°)
OKLaboklab(49.82% 0.1321 -0.1571)
OKLCHoklch(49.82% 0.205 310.1)
XYZxyz(19.3936, 10.5207, 45.7996)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FB7 #60B72F
analogous
#422FB7 #862FB7 #B72FA4
triadic
#862FB7 #B7862F #2FB786
tetradic
#862FB7 #B7422F #60B72F #2FA4B7
square
#862FB7 #B7422F #60B72F #2FA4B7
split-complementary
#862FB7 #A4B72F #2FB742
monochromatic
#3F1656 #622286 #862FB7 #A451D2 #BD82DF

Accessibility & contrast

On white

6.77
#862FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #862FB7
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FB7#FFFFFF#000000##FFFFFF
##862FB71.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#0D5DB4
Tritanopia (blue-blind)
#7F4F71
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #862fb7;
/* rgb */ color: rgb(134, 47, 183);
/* oklch */ color: oklch(49.8% 0.205 310.1);
Tailwind
colors: {
  custom: {
    50: '#ae70cd',
    500: '#862fb7',
    950: '#000000',
  },
}
SCSS
$custom: #862fb7;
$custom-light: #ae70cd;
$custom-dark: #000000;
JSON
{
  "hex": "#862fb7",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 278.382,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49815,
    "c": 0.20527,
    "h": 310.1
  },
  "luminance": 0.1052
}

Semantic roles & 50–950 ramp

primary
#862FB7
secondary
#96C87A
accent
#E2457E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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