#862A9F#862A9F

#862A9F is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.189 H 318.0°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#862A9F
RGBrgb(134, 42, 159)
HSLhsl(287, 58%, 39%)
HSVhsv(287, 74%, 62%)
CMYKcmyk(15.7%, 73.6%, 0%, 37.6%)
CIE-LABlab(36.42, 55.30, -44.89)
CIE-LCHlch(36.42, 71.23, 320.94°)
OKLaboklab(47.63% 0.1403 -0.1261)
OKLCHoklch(47.63% 0.189 318)
XYZxyz(16.9166, 9.2282, 33.6843)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862A9F #439F2A
analogous
#4B2A9F #862A9F #9F2A7E
triadic
#862A9F #9F862A #2A9F86
tetradic
#862A9F #9F4B2A #439F2A #2A7E9F
square
#862A9F #9F4B2A #439F2A #2A7E9F
split-complementary
#862A9F #7E9F2A #2A9F4B
monochromatic
#34103E #5D1D6F #862A9F #AC3BCB #C16BD8

Accessibility & contrast

On white

7.38
#862A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#862A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862A9F
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862A9F#FFFFFF#000000##FFFFFF
##862A9F1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A2
Deuteranopia (green-blind)
#2F599C
Tritanopia (blue-blind)
#854262
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862a9f;
/* rgb */ color: rgb(134, 42, 159);
/* oklch */ color: oklch(47.6% 0.189 318.0);
Tailwind
colors: {
  custom: {
    50: '#ad6dbc',
    500: '#862a9f',
    950: '#000000',
  },
}
SCSS
$custom: #862a9f;
$custom-light: #ad6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#862a9f",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 287.179,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.47628,
    "c": 0.1886,
    "h": 318
  },
  "luminance": 0.09227
}

Semantic roles & 50–950 ramp

primary
#862A9F
secondary
#79BF66
accent
#E14668
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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