#862F98#862F98

#862F98 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.7% C 0.176 H 320.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#862F98
RGBrgb(134, 47, 152)
HSLhsl(290, 53%, 39%)
HSVhsv(290, 69%, 60%)
CMYKcmyk(11.8%, 69.1%, 0%, 40.4%)
CIE-LABlab(36.69, 51.91, -40.22)
CIE-LCHlch(36.69, 65.67, 322.23°)
OKLaboklab(47.68% 0.1354 -0.1125)
OKLCHoklch(47.68% 0.176 320.3)
XYZxyz(16.5148, 9.3692, 30.6382)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F98 #41982F
analogous
#522F98 #862F98 #982F76
triadic
#862F98 #98862F #2F9886
tetradic
#862F98 #98522F #41982F #2F7698
square
#862F98 #98522F #41982F #2F7698
split-complementary
#862F98 #76982F #2F9852
monochromatic
#34123B #5D2169 #862F98 #AD40C4 #C16FD2

Accessibility & contrast

On white

7.31
#862F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#862F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F98
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F98#FFFFFF#000000##FFFFFF
##862F981.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06509B
Deuteranopia (green-blind)
#395995
Tritanopia (blue-blind)
#874260
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862f98;
/* rgb */ color: rgb(134, 47, 152);
/* oklch */ color: oklch(47.7% 0.176 320.3);
Tailwind
colors: {
  custom: {
    50: '#ac6fb7',
    500: '#862f98',
    950: '#000000',
  },
}
SCSS
$custom: #862f98;
$custom-light: #ac6fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#862f98",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 289.714,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.47676,
    "c": 0.17603,
    "h": 320.3
  },
  "luminance": 0.09368
}

Semantic roles & 50–950 ramp

primary
#862F98
secondary
#77BA69
accent
#DC4C64
background
#FAF7FB
surface
#F5EDF6
border
#CFC8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #862F98

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

Preview Lab → · Contrast checker → · Palette generator →

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