#7A1F97#7A1F97

#7A1F97 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.189 H 316.2°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7A1F97
RGBrgb(122, 31, 151)
HSLhsl(286, 66%, 36%)
HSVhsv(286, 79%, 59%)
CMYKcmyk(19.2%, 79.5%, 0%, 40.8%)
CIE-LABlab(32.60, 55.23, -46.28)
CIE-LCHlch(32.60, 72.05, 320.04°)
OKLaboklab(44.37% 0.1363 -0.1305)
OKLCHoklch(44.37% 0.189 316.2)
XYZxyz(14.1011, 7.3525, 29.9485)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F97 #3C971F
analogous
#3E1F97 #7A1F97 #971F78
triadic
#7A1F97 #977A1F #1F977A
tetradic
#7A1F97 #973E1F #3C971F #1F7897
square
#7A1F97 #973E1F #3C971F #1F7897
split-complementary
#7A1F97 #78971F #1F973E
monochromatic
#280A31 #511564 #7A1F97 #A329CA #BB54DC

Accessibility & contrast

On white

8.50
#7A1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7A1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F97
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F97#FFFFFF#000000##FFFFFF
##7A1F971.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#1E4F94
Tritanopia (blue-blind)
#783B5B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a1f97;
/* rgb */ color: rgb(122, 31, 151);
/* oklch */ color: oklch(44.4% 0.189 316.2);
Tailwind
colors: {
  custom: {
    50: '#a566b6',
    500: '#7a1f97',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f97;
$custom-light: #a566b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f97",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 285.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44366,
    "c": 0.18867,
    "h": 316.2
  },
  "luminance": 0.07352
}

Semantic roles & 50–950 ramp

primary
#7A1F97
secondary
#6DBF52
accent
#E93F68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7A1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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