#862FBA#862FBA

#862FBA is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.208 H 309.2°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#862FBA
RGBrgb(134, 47, 186)
HSLhsl(278, 60%, 46%)
HSVhsv(278, 75%, 73%)
CMYKcmyk(28%, 74.7%, 0%, 27.1%)
CIE-LABlab(38.98, 58.97, -56.85)
CIE-LCHlch(38.98, 81.91, 316.05°)
OKLaboklab(50.04% 0.1316 -0.1612)
OKLCHoklch(50.04% 0.208 309.2)
XYZxyz(19.7092, 10.6469, 47.4616)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FBA #63BA2F
analogous
#402FBA #862FBA #BA2FA8
triadic
#862FBA #BA862F #2FBA86
tetradic
#862FBA #BA402F #63BA2F #2FA8BA
square
#862FBA #BA402F #63BA2F #2FA8BA
split-complementary
#862FBA #A8BA2F #2FBA40
monochromatic
#401658 #632389 #862FBA #A353D3 #BD84E0

Accessibility & contrast

On white

6.71
#862FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#862FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862FBA
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FBA#FFFFFF#000000##FFFFFF
##862FBA1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#005DB7
Tritanopia (blue-blind)
#7E5073
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #862fba;
/* rgb */ color: rgb(134, 47, 186);
/* oklch */ color: oklch(50.0% 0.208 309.2);
Tailwind
colors: {
  custom: {
    50: '#ae70d0',
    500: '#862fba',
    950: '#000000',
  },
}
SCSS
$custom: #862fba;
$custom-light: #ae70d0;
$custom-dark: #000000;
JSON
{
  "hex": "#862fba",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 277.554,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50038,
    "c": 0.20813,
    "h": 309.2
  },
  "luminance": 0.10647
}

Semantic roles & 50–950 ramp

primary
#862FBA
secondary
#99C97C
accent
#E34580
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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