#7F1982#7F1982

#7F1982 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.179 H 326.8°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#7F1982
RGBrgb(127, 25, 130)
HSLhsl(298, 68%, 30%)
HSVhsv(298, 81%, 51%)
CMYKcmyk(2.3%, 80.8%, 0%, 49%)
CIE-LABlab(31.39, 54.18, -35.18)
CIE-LCHlch(31.39, 64.60, 327.00°)
OKLaboklab(43.23% 0.1497 -0.0978)
OKLCHoklch(43.23% 0.179 326.8)
XYZxyz(13.1291, 6.8199, 21.7396)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1982 #1C8219
analogous
#4B1982 #7F1982 #821950
triadic
#7F1982 #827F19 #19827F
tetradic
#7F1982 #824B19 #1C8219 #195082
square
#7F1982 #824B19 #1C8219 #195082
split-complementary
#7F1982 #508219 #19824B
monochromatic
#1B051B #4D0F4F #7F1982 #B123B5 #D53CD9

Accessibility & contrast

On white

8.88
#7F1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7F1982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1982
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1982#FFFFFF#000000##FFFFFF
##7F19821.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#354E80
Tritanopia (blue-blind)
#832C4E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1982;
/* rgb */ color: rgb(127, 25, 130);
/* oklch */ color: oklch(43.2% 0.179 326.8);
Tailwind
colors: {
  custom: {
    50: '#a864a7',
    500: '#7f1982',
    950: '#000000',
  },
}
SCSS
$custom: #7f1982;
$custom-light: #a864a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1982",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 298.286,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.43233,
    "c": 0.17881,
    "h": 326.8
  },
  "luminance": 0.06819
}

Semantic roles & 50–950 ramp

primary
#7F1982
secondary
#44B641
accent
#EB3D42
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1982

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

Preview Lab → · Contrast checker → · Palette generator →

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