#7A1FA1#7A1FA1

#7A1FA1 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.198 H 312.8°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7A1FA1
RGBrgb(122, 31, 161)
HSLhsl(282, 68%, 38%)
HSVhsv(282, 81%, 63%)
CMYKcmyk(24.2%, 80.7%, 0%, 36.9%)
CIE-LABlab(33.33, 57.25, -51.17)
CIE-LCHlch(33.33, 76.79, 318.21°)
OKLaboklab(45.11% 0.1344 -0.1449)
OKLCHoklch(45.11% 0.198 312.8)
XYZxyz(14.9479, 7.6912, 34.4084)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1FA1 #46A11F
analogous
#391FA1 #7A1FA1 #A11F87
triadic
#7A1FA1 #A17A1F #1FA17A
tetradic
#7A1FA1 #A1391F #46A11F #1F87A1
square
#7A1FA1 #A1391F #46A11F #1F87A1
split-complementary
#7A1FA1 #87A11F #1FA139
monochromatic
#2C0B3A #53156E #7A1FA1 #A129D4 #B85BDF

Accessibility & contrast

On white

8.27
#7A1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7A1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1FA1
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1FA1#FFFFFF#000000##FFFFFF
##7A1FA11.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#07509E
Tritanopia (blue-blind)
#763F61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a1fa1;
/* rgb */ color: rgb(122, 31, 161);
/* oklch */ color: oklch(45.1% 0.198 312.8);
Tailwind
colors: {
  custom: {
    50: '#a567be',
    500: '#7a1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #7a1fa1;
$custom-light: #a567be;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1fa1",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 282,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45114,
    "c": 0.19758,
    "h": 312.8
  },
  "luminance": 0.07691
}

Semantic roles & 50–950 ramp

primary
#7A1FA1
secondary
#78C458
accent
#EB3D71
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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