#7F1A76#7F1A76

#7F1A76 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.169 H 332.2°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#7F1A76
RGBrgb(127, 26, 118)
HSLhsl(305, 66%, 30%)
HSVhsv(305, 80%, 50%)
CMYKcmyk(0%, 79.5%, 7.1%, 50.2%)
CIE-LABlab(30.78, 51.88, -28.59)
CIE-LCHlch(30.78, 59.24, 331.14°)
OKLaboklab(42.57% 0.149 -0.0787)
OKLCHoklch(42.57% 0.169 332.2)
XYZxyz(12.3918, 6.5599, 17.7496)
Luminance0.0656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1A76 #1A7F23
analogous
#561A7F #7F1A76 #7F1A43
triadic
#7F1A76 #767F1A #1A767F
tetradic
#7F1A76 #7F561A #1A7F23 #1A437F
square
#7F1A76 #7F561A #1A7F23 #1A437F
split-complementary
#7F1A76 #437F1A #1A7F56
monochromatic
#190518 #4C1047 #7F1A76 #B224A5 #D73CC9

Accessibility & contrast

On white

9.08
#7F1A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1A76
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1A76#FFFFFF#000000##FFFFFF
##7F1A761.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1a76;
/* rgb */ color: rgb(127, 26, 118);
/* oklch */ color: oklch(42.6% 0.169 332.2);
Tailwind
colors: {
  custom: {
    50: '#a8639e',
    500: '#7f1a76',
    950: '#000000',
  },
}
SCSS
$custom: #7f1a76;
$custom-light: #a8639e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1a76",
  "rgb": {
    "r": 127,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 305.347,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.42568,
    "c": 0.16852,
    "h": 332.2
  },
  "luminance": 0.06559
}

Semantic roles & 50–950 ramp

primary
#7F1A76
secondary
#42B34C
accent
#E94E3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1A76

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

Preview Lab → · Contrast checker → · Palette generator →

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