#7F1F74#7F1F74

#7F1F74 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.162 H 333.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7F1F74
RGBrgb(127, 31, 116)
HSLhsl(307, 61%, 31%)
HSVhsv(307, 76%, 50%)
CMYKcmyk(0%, 75.6%, 8.7%, 50.2%)
CIE-LABlab(31.24, 49.93, -26.60)
CIE-LCHlch(31.24, 56.58, 331.95°)
OKLaboklab(42.86% 0.1442 -0.073)
OKLCHoklch(42.86% 0.162 333.2)
XYZxyz(12.3948, 6.7540, 17.1705)
Luminance0.0675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F74 #1F7F2A
analogous
#5A1F7F #7F1F74 #7F1F44
triadic
#7F1F74 #747F1F #1F747F
tetradic
#7F1F74 #7F5A1F #1F7F2A #1F447F
square
#7F1F74 #7F5A1F #1F7F2A #1F447F
split-complementary
#7F1F74 #447F1F #1F7F5A
monochromatic
#1D071A #4E1347 #7F1F74 #B02BA1 #D246C2

Accessibility & contrast

On white

8.93
#7F1F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1F74
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F74#FFFFFF#000000##FFFFFF
##7F1F741.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4176
Deuteranopia (green-blind)
#3F4E72
Tritanopia (blue-blind)
#852947
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1f74;
/* rgb */ color: rgb(127, 31, 116);
/* oklch */ color: oklch(42.9% 0.162 333.2);
Tailwind
colors: {
  custom: {
    50: '#a7659c',
    500: '#7f1f74',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f74;
$custom-light: #a7659c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f74",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 306.875,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.4286,
    "c": 0.16161,
    "h": 333.2
  },
  "luminance": 0.06753
}

Semantic roles & 50–950 ramp

primary
#7F1F74
secondary
#48B254
accent
#E45644
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1F74

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

Preview Lab → · Contrast checker → · Palette generator →

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