#862F78#862F78

#862F78 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 45.8% C 0.148 H 334.6°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#862F78
RGBrgb(134, 47, 120)
HSLhsl(310, 48%, 35%)
HSVhsv(310, 65%, 53%)
CMYKcmyk(0%, 64.9%, 10.4%, 47.5%)
CIE-LABlab(34.92, 46.06, -23.27)
CIE-LCHlch(34.92, 51.61, 333.19°)
OKLaboklab(45.83% 0.1337 -0.0634)
OKLCHoklch(45.83% 0.148 334.6)
XYZxyz(14.2383, 8.4586, 18.6484)
Luminance0.0846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F78 #2F863D
analogous
#682F86 #862F78 #862F4C
triadic
#862F78 #78862F #2F7886
tetradic
#862F78 #86682F #2F863D #2F4C86
square
#862F78 #86682F #2F863D #2F4C86
split-complementary
#862F78 #4C862F #2F8668
monochromatic
#2B0F27 #591F4F #862F78 #B33FA1 #C966B9

Accessibility & contrast

On white

7.80
#862F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#862F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F78
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F78#FFFFFF#000000##FFFFFF
##862F781.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4A7A
Deuteranopia (green-blind)
#4A5776
Tritanopia (blue-blind)
#8C354F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862f78;
/* rgb */ color: rgb(134, 47, 120);
/* oklch */ color: oklch(45.8% 0.148 334.6);
Tailwind
colors: {
  custom: {
    50: '#ac6e9f',
    500: '#862f78',
    950: '#000000',
  },
}
SCSS
$custom: #862f78;
$custom-light: #ac6e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#862f78",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 309.655,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45827,
    "c": 0.14797,
    "h": 334.6
  },
  "luminance": 0.08457
}

Semantic roles & 50–950 ramp

primary
#862F78
secondary
#60B06D
accent
#D86650
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #862F78

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

Preview Lab → · Contrast checker → · Palette generator →

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