#862D98#862D98

#862D98 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.5% C 0.179 H 320.4°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#862D98
RGBrgb(134, 45, 152)
HSLhsl(290, 54%, 39%)
HSVhsv(290, 70%, 60%)
CMYKcmyk(11.8%, 70.4%, 0%, 40.4%)
CIE-LABlab(36.39, 52.74, -40.69)
CIE-LCHlch(36.39, 66.62, 322.35°)
OKLaboklab(47.47% 0.1376 -0.1138)
OKLCHoklch(47.47% 0.179 320.4)
XYZxyz(16.4367, 9.2129, 30.6122)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D98 #3F982D
analogous
#502D98 #862D98 #982D74
triadic
#862D98 #98862D #2D9886
tetradic
#862D98 #98502D #3F982D #2D7498
square
#862D98 #98502D #3F982D #2D7498
split-complementary
#862D98 #74982D #2D9850
monochromatic
#33113A #5C1F69 #862D98 #AE3DC5 #C26CD3

Accessibility & contrast

On white

7.39
#862D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#862D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862D98
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D98#FFFFFF#000000##FFFFFF
##862D981.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#375995
Tritanopia (blue-blind)
#87415F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862d98;
/* rgb */ color: rgb(134, 45, 152);
/* oklch */ color: oklch(47.5% 0.179 320.4);
Tailwind
colors: {
  custom: {
    50: '#ad6eb7',
    500: '#862d98',
    950: '#000000',
  },
}
SCSS
$custom: #862d98;
$custom-light: #ad6eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#862d98",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 289.907,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.47465,
    "c": 0.1786,
    "h": 320.4
  },
  "luminance": 0.09212
}

Semantic roles & 50–950 ramp

primary
#862D98
secondary
#74BA66
accent
#DE4A63
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #862D98

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

Preview Lab → · Contrast checker → · Palette generator →

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