#7A1F77#7A1F77

#7A1F77 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.161 H 329.4°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7A1F77
RGBrgb(122, 31, 119)
HSLhsl(302, 59%, 30%)
HSVhsv(302, 75%, 48%)
CMYKcmyk(0%, 74.6%, 2.5%, 52.2%)
CIE-LABlab(30.52, 49.23, -29.70)
CIE-LCHlch(30.52, 57.50, 328.90°)
OKLaboklab(42.23% 0.1388 -0.0821)
OKLCHoklch(42.23% 0.161 329.4)
XYZxyz(11.8457, 6.4503, 18.0703)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F77 #1F7A22
analogous
#4F1F7A #7A1F77 #7A1F4A
triadic
#7A1F77 #777A1F #1F777A
tetradic
#7A1F77 #7A4F1F #1F7A22 #1F4A7A
square
#7A1F77 #7A4F1F #1F7A22 #1F4A7A
split-complementary
#7A1F77 #4A7A1F #1F7A4F
monochromatic
#180618 #491347 #7A1F77 #AB2BA7 #CF44CB

Accessibility & contrast

On white

9.17
#7A1F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7A1F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F77
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F77#FFFFFF#000000##FFFFFF
##7A1F771.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124079
Deuteranopia (green-blind)
#394C75
Tritanopia (blue-blind)
#7E2C49
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a1f77;
/* rgb */ color: rgb(122, 31, 119);
/* oklch */ color: oklch(42.2% 0.161 329.4);
Tailwind
colors: {
  custom: {
    50: '#a4659e',
    500: '#7a1f77',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f77;
$custom-light: #a4659e;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f77",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 301.978,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.42228,
    "c": 0.16122,
    "h": 329.4
  },
  "luminance": 0.06449
}

Semantic roles & 50–950 ramp

primary
#7A1F77
secondary
#47AD4B
accent
#E34A45
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A1F77

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

Preview Lab → · Contrast checker → · Palette generator →

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