#862F71#862F71

#862F71 is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.5% C 0.142 H 338.4°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#862F71
RGBrgb(134, 47, 113)
HSLhsl(314, 48%, 35%)
HSVhsv(314, 65%, 53%)
CMYKcmyk(0%, 64.9%, 15.7%, 47.5%)
CIE-LABlab(34.59, 44.92, -19.39)
CIE-LCHlch(34.59, 48.93, 336.65°)
OKLaboklab(45.48% 0.1325 -0.0524)
OKLCHoklch(45.48% 0.143 338.4)
XYZxyz(13.8289, 8.2948, 16.4923)
Luminance0.0829 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F71 #2F8644
analogous
#6F2F86 #862F71 #862F45
triadic
#862F71 #71862F #2F7186
tetradic
#862F71 #866F2F #2F8644 #2F4586
square
#862F71 #866F2F #2F8644 #2F4586
split-complementary
#862F71 #45862F #2F866F
monochromatic
#2B0F25 #591F4B #862F71 #B33F97 #C966B1

Accessibility & contrast

On white

7.90
#862F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#862F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F71
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F71#FFFFFF#000000##FFFFFF
##862F711.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324973
Deuteranopia (green-blind)
#4D566F
Tritanopia (blue-blind)
#8D324B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #862f71;
/* rgb */ color: rgb(134, 47, 113);
/* oklch */ color: oklch(45.5% 0.142 338.4);
Tailwind
colors: {
  custom: {
    50: '#ac6e9a',
    500: '#862f71',
    950: '#000000',
  },
}
SCSS
$custom: #862f71;
$custom-light: #ac6e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#862f71",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 314.483,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45477,
    "c": 0.1425,
    "h": 338.4
  },
  "luminance": 0.08294
}

Semantic roles & 50–950 ramp

primary
#862F71
secondary
#60B074
accent
#D87150
background
#FAF6F9
surface
#F5ECF2
border
#CFC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #862F71

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

Preview Lab → · Contrast checker → · Palette generator →

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