#862E98#862E98

#862E98 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.177 H 320.3°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#862E98
RGBrgb(134, 46, 152)
HSLhsl(290, 54%, 39%)
HSVhsv(290, 70%, 60%)
CMYKcmyk(11.8%, 69.7%, 0%, 40.4%)
CIE-LABlab(36.54, 52.33, -40.46)
CIE-LCHlch(36.54, 66.15, 322.29°)
OKLaboklab(47.57% 0.1365 -0.1132)
OKLCHoklch(47.57% 0.177 320.3)
XYZxyz(16.4753, 9.2901, 30.6250)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862E98 #40982E
analogous
#512E98 #862E98 #982E75
triadic
#862E98 #98862E #2E9886
tetradic
#862E98 #98512E #40982E #2E7598
square
#862E98 #98512E #40982E #2E7598
split-complementary
#862E98 #75982E #2E9851
monochromatic
#33123A #5D2069 #862E98 #AE3EC5 #C26DD3

Accessibility & contrast

On white

7.35
#862E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#862E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862E98
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862E98#FFFFFF#000000##FFFFFF
##862E981.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02509B
Deuteranopia (green-blind)
#385995
Tritanopia (blue-blind)
#87415F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862e98;
/* rgb */ color: rgb(134, 46, 152);
/* oklch */ color: oklch(47.6% 0.177 320.3);
Tailwind
colors: {
  custom: {
    50: '#ac6fb7',
    500: '#862e98',
    950: '#000000',
  },
}
SCSS
$custom: #862e98;
$custom-light: #ac6fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#862e98",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 289.811,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.47569,
    "c": 0.17732,
    "h": 320.3
  },
  "luminance": 0.09289
}

Semantic roles & 50–950 ramp

primary
#862E98
secondary
#76BA68
accent
#DD4B64
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #862E98

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

Preview Lab → · Contrast checker → · Palette generator →

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