#7F1977#7F1977

#7F1977 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.170 H 331.7°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#7F1977
RGBrgb(127, 25, 119)
HSLhsl(305, 67%, 30%)
HSVhsv(305, 80%, 50%)
CMYKcmyk(0%, 80.3%, 6.3%, 50.2%)
CIE-LABlab(30.74, 52.34, -29.30)
CIE-LCHlch(30.74, 59.99, 330.76°)
OKLaboklab(42.55% 0.1499 -0.0807)
OKLCHoklch(42.55% 0.17 331.7)
XYZxyz(12.4298, 6.5402, 18.0569)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1977 #197F21
analogous
#54197F #7F1977 #7F1944
triadic
#7F1977 #777F19 #19777F
tetradic
#7F1977 #7F5419 #197F21 #19447F
square
#7F1977 #7F5419 #197F21 #19447F
split-complementary
#7F1977 #447F19 #197F54
monochromatic
#1A0518 #4C0F47 #7F1977 #B223A7 #D83ACC

Accessibility & contrast

On white

9.10
#7F1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7F1977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1977
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1977#FFFFFF#000000##FFFFFF
##7F19771.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3F79
Deuteranopia (green-blind)
#3B4D75
Tritanopia (blue-blind)
#852647
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1977;
/* rgb */ color: rgb(127, 25, 119);
/* oklch */ color: oklch(42.6% 0.170 331.7);
Tailwind
colors: {
  custom: {
    50: '#a8639e',
    500: '#7f1977',
    950: '#000000',
  },
}
SCSS
$custom: #7f1977;
$custom-light: #a8639e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1977",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 304.706,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42553,
    "c": 0.17027,
    "h": 331.7
  },
  "luminance": 0.06539
}

Semantic roles & 50–950 ramp

primary
#7F1977
secondary
#41B34A
accent
#EA4B3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1977

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

Preview Lab → · Contrast checker → · Palette generator →

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