#7A1F74#7A1F74

#7A1F74 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.0% C 0.159 H 330.9°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7A1F74
RGBrgb(122, 31, 116)
HSLhsl(304, 59%, 30%)
HSVhsv(304, 75%, 48%)
CMYKcmyk(0%, 74.6%, 4.9%, 52.2%)
CIE-LABlab(30.35, 48.72, -28.07)
CIE-LCHlch(30.35, 56.22, 330.05°)
OKLaboklab(42.05% 0.1387 -0.0773)
OKLCHoklch(42.05% 0.159 330.9)
XYZxyz(11.6684, 6.3794, 17.1364)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F74 #1F7A25
analogous
#521F7A #7A1F74 #7A1F47
triadic
#7A1F74 #747A1F #1F747A
tetradic
#7A1F74 #7A521F #1F7A25 #1F477A
square
#7A1F74 #7A521F #1F7A25 #1F477A
split-complementary
#7A1F74 #477A1F #1F7A52
monochromatic
#180617 #491346 #7A1F74 #AB2BA2 #CF44C6

Accessibility & contrast

On white

9.23
#7A1F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7A1F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F74
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F74#FFFFFF#000000##FFFFFF
##7A1F741.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163F76
Deuteranopia (green-blind)
#3B4C72
Tritanopia (blue-blind)
#7F2A47
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a1f74;
/* rgb */ color: rgb(122, 31, 116);
/* oklch */ color: oklch(42.0% 0.159 330.9);
Tailwind
colors: {
  custom: {
    50: '#a4659c',
    500: '#7a1f74',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f74;
$custom-light: #a4659c;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f74",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 303.956,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.4205,
    "c": 0.15878,
    "h": 330.9
  },
  "luminance": 0.06379
}

Semantic roles & 50–950 ramp

primary
#7A1F74
secondary
#47AD4E
accent
#E35045
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A1F74

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

Preview Lab → · Contrast checker → · Palette generator →

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