#7F1976#7F1976

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

Color values

HEX#7F1976
RGBrgb(127, 25, 118)
HSLhsl(305, 67%, 30%)
HSVhsv(305, 80%, 50%)
CMYKcmyk(0%, 80.3%, 7.1%, 50.2%)
CIE-LABlab(30.68, 52.18, -28.76)
CIE-LCHlch(30.68, 59.58, 331.14°)
OKLaboklab(42.49% 0.1499 -0.0792)
OKLCHoklch(42.49% 0.17 332.2)
XYZxyz(12.3701, 6.5163, 17.7423)
Luminance0.0651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1976 #197F22
analogous
#55197F #7F1976 #7F1943
triadic
#7F1976 #767F19 #19767F
tetradic
#7F1976 #7F5519 #197F22 #19437F
square
#7F1976 #7F5519 #197F22 #19437F
split-complementary
#7F1976 #437F19 #197F55
monochromatic
#1A0518 #4C0F46 #7F1976 #B223A6 #D83ACA

Accessibility & contrast

On white

9.12
#7F1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7F1976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1976
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1976#FFFFFF#000000##FFFFFF
##7F19761.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113F78
Deuteranopia (green-blind)
#3C4D74
Tritanopia (blue-blind)
#852647
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1976;
/* rgb */ color: rgb(127, 25, 118);
/* oklch */ color: oklch(42.5% 0.170 332.2);
Tailwind
colors: {
  custom: {
    50: '#a8639e',
    500: '#7f1976',
    950: '#000000',
  },
}
SCSS
$custom: #7f1976;
$custom-light: #a8639e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1976",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 305.294,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42494,
    "c": 0.16951,
    "h": 332.2
  },
  "luminance": 0.06515
}

Semantic roles & 50–950 ramp

primary
#7F1976
secondary
#41B34B
accent
#EA4D3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1976

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

Preview Lab → · Contrast checker → · Palette generator →

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