#7A1F73#7A1F73

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

Color values

HEX#7A1F73
RGBrgb(122, 31, 115)
HSLhsl(305, 59%, 30%)
HSVhsv(305, 75%, 48%)
CMYKcmyk(0%, 74.6%, 5.7%, 52.2%)
CIE-LABlab(30.29, 48.55, -27.52)
CIE-LCHlch(30.29, 55.80, 330.45°)
OKLaboklab(41.99% 0.1386 -0.0757)
OKLCHoklch(41.99% 0.158 331.3)
XYZxyz(11.6105, 6.3563, 16.8317)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F73 #1F7A26
analogous
#531F7A #7A1F73 #7A1F46
triadic
#7A1F73 #737A1F #1F737A
tetradic
#7A1F73 #7A531F #1F7A26 #1F467A
square
#7A1F73 #7A531F #1F7A26 #1F467A
split-complementary
#7A1F73 #467A1F #1F7A53
monochromatic
#180617 #491345 #7A1F73 #AB2BA1 #CF44C5

Accessibility & contrast

On white

9.25
#7A1F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7A1F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F73
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F73#FFFFFF#000000##FFFFFF
##7A1F731.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183F75
Deuteranopia (green-blind)
#3B4C71
Tritanopia (blue-blind)
#7F2A47
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a1f73;
/* rgb */ color: rgb(122, 31, 115);
/* oklch */ color: oklch(42.0% 0.158 331.3);
Tailwind
colors: {
  custom: {
    50: '#a4659b',
    500: '#7a1f73',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f73;
$custom-light: #a4659b;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f73",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 304.615,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.41991,
    "c": 0.15798,
    "h": 331.3
  },
  "luminance": 0.06355
}

Semantic roles & 50–950 ramp

primary
#7A1F73
secondary
#47AD4F
accent
#E35145
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A1F73

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

Preview Lab → · Contrast checker → · Palette generator →

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