#7F2986#7F2986

#7F2986 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.164 H 324.7°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7F2986
RGBrgb(127, 41, 134)
HSLhsl(295, 53%, 34%)
HSVhsv(295, 69%, 53%)
CMYKcmyk(5.2%, 69.4%, 0%, 47.5%)
CIE-LABlab(33.61, 49.28, -34.15)
CIE-LCHlch(33.61, 59.96, 325.28°)
OKLaboklab(44.89% 0.134 -0.0949)
OKLCHoklch(44.89% 0.164 324.7)
XYZxyz(13.8481, 7.8200, 23.3296)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2986 #308629
analogous
#512986 #7F2986 #86295F
triadic
#7F2986 #867F29 #29867F
tetradic
#7F2986 #865129 #308629 #295F86
square
#7F2986 #865129 #308629 #295F86
split-complementary
#7F2986 #5F8629 #298651
monochromatic
#260C28 #531B57 #7F2986 #AB37B5 #C55CCD

Accessibility & contrast

On white

8.19
#7F2986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7F2986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2986
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2986#FFFFFF#000000##FFFFFF
##7F29861.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144889
Deuteranopia (green-blind)
#3A5384
Tritanopia (blue-blind)
#823854
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2986;
/* rgb */ color: rgb(127, 41, 134);
/* oklch */ color: oklch(44.9% 0.164 324.7);
Tailwind
colors: {
  custom: {
    50: '#a76baa',
    500: '#7f2986',
    950: '#000000',
  },
}
SCSS
$custom: #7f2986;
$custom-light: #a76baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2986",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 295.484,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44891,
    "c": 0.16418,
    "h": 324.7
  },
  "luminance": 0.07819
}

Semantic roles & 50–950 ramp

primary
#7F2986
secondary
#5FB358
accent
#DD4B56
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2986

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

Preview Lab → · Contrast checker → · Palette generator →

#7F2986 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva