#7F1F73#7F1F73

#7F1F73 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.161 H 333.6°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7F1F73
RGBrgb(127, 31, 115)
HSLhsl(308, 61%, 31%)
HSVhsv(308, 76%, 50%)
CMYKcmyk(0%, 75.6%, 9.4%, 50.2%)
CIE-LABlab(31.19, 49.77, -26.05)
CIE-LCHlch(31.19, 56.18, 332.37°)
OKLaboklab(42.8% 0.1441 -0.0714)
OKLCHoklch(42.8% 0.161 333.6)
XYZxyz(12.3370, 6.7309, 16.8658)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F73 #1F7F2B
analogous
#5B1F7F #7F1F73 #7F1F43
triadic
#7F1F73 #737F1F #1F737F
tetradic
#7F1F73 #7F5B1F #1F7F2B #1F437F
square
#7F1F73 #7F5B1F #1F7F2B #1F437F
split-complementary
#7F1F73 #437F1F #1F7F5B
monochromatic
#1D071A #4E1346 #7F1F73 #B02BA0 #D246C1

Accessibility & contrast

On white

8.95
#7F1F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7F1F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F73
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F73#FFFFFF#000000##FFFFFF
##7F1F731.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4175
Deuteranopia (green-blind)
#404E71
Tritanopia (blue-blind)
#852847
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1f73;
/* rgb */ color: rgb(127, 31, 115);
/* oklch */ color: oklch(42.8% 0.161 333.6);
Tailwind
colors: {
  custom: {
    50: '#a7659b',
    500: '#7f1f73',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f73;
$custom-light: #a7659b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f73",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 307.5,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42804,
    "c": 0.16084,
    "h": 333.6
  },
  "luminance": 0.0673
}

Semantic roles & 50–950 ramp

primary
#7F1F73
secondary
#48B255
accent
#E45844
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1F73

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

Preview Lab → · Contrast checker → · Palette generator →

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