#862FC9#862FC9

#862FC9 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.2% C 0.222 H 305.3°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#862FC9
RGBrgb(134, 47, 201)
HSLhsl(274, 62%, 49%)
HSVhsv(274, 77%, 79%)
CMYKcmyk(33.3%, 76.6%, 0%, 21.2%)
CIE-LABlab(40.11, 62.26, -63.79)
CIE-LCHlch(40.11, 89.14, 314.31°)
OKLaboklab(51.19% 0.1285 -0.1816)
OKLCHoklch(51.19% 0.222 305.3)
XYZxyz(21.3883, 11.3186, 56.3049)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FC9 #72C92F
analogous
#392FC9 #862FC9 #C92FBF
triadic
#862FC9 #C9862F #2FC986
tetradic
#862FC9 #C9392F #72C92F #2FBFC9
square
#862FC9 #C9392F #72C92F #2FBFC9
split-complementary
#862FC9 #BFC92F #2FC939
monochromatic
#441866 #652397 #862FC9 #A35CD9 #BF8EE5

Accessibility & contrast

On white

6.43
#862FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#862FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862FC9
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FC9#FFFFFF#000000##FFFFFF
##862FC91.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCD
Deuteranopia (green-blind)
#005FC6
Tritanopia (blue-blind)
#79567B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #862fc9;
/* rgb */ color: rgb(134, 47, 201);
/* oklch */ color: oklch(51.2% 0.222 305.3);
Tailwind
colors: {
  custom: {
    50: '#af71da',
    500: '#862fc9',
    950: '#000000',
  },
}
SCSS
$custom: #862fc9;
$custom-light: #af71da;
$custom-dark: #000000;
JSON
{
  "hex": "#862fc9",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 273.896,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.51189,
    "c": 0.22248,
    "h": 305.3
  },
  "luminance": 0.11318
}

Semantic roles & 50–950 ramp

primary
#862FC9
secondary
#A5CF85
accent
#E54389
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #862FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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