#7A1FA4#7A1FA4

#7A1FA4 is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.3% C 0.200 H 311.9°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#7A1FA4
RGBrgb(122, 31, 164)
HSLhsl(281, 68%, 38%)
HSVhsv(281, 81%, 64%)
CMYKcmyk(25.6%, 81.1%, 0%, 35.7%)
CIE-LABlab(33.56, 57.87, -52.62)
CIE-LCHlch(33.56, 78.22, 317.72°)
OKLaboklab(45.35% 0.1337 -0.1491)
OKLCHoklch(45.35% 0.2 311.9)
XYZxyz(15.2156, 7.7983, 35.8185)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1FA4 #49A41F
analogous
#381FA4 #7A1FA4 #A41F8B
triadic
#7A1FA4 #A47A1F #1FA47A
tetradic
#7A1FA4 #A4381F #49A41F #1F8BA4
square
#7A1FA4 #A4381F #49A41F #1F8BA4
split-complementary
#7A1FA4 #8BA41F #1FA438
monochromatic
#2D0C3D #541571 #7A1FA4 #A02AD7 #B75DE0

Accessibility & contrast

On white

8.20
#7A1FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7A1FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1FA4
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1FA4#FFFFFF#000000##FFFFFF
##7A1FA41.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0051A1
Tritanopia (blue-blind)
#754162
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a1fa4;
/* rgb */ color: rgb(122, 31, 164);
/* oklch */ color: oklch(45.3% 0.200 311.9);
Tailwind
colors: {
  custom: {
    50: '#a567c0',
    500: '#7a1fa4',
    950: '#000000',
  },
}
SCSS
$custom: #7a1fa4;
$custom-light: #a567c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1fa4",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 164
  },
  "hsl": {
    "h": 281.053,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45346,
    "c": 0.20027,
    "h": 311.9
  },
  "luminance": 0.07798
}

Semantic roles & 50–950 ramp

primary
#7A1FA4
secondary
#7CC55A
accent
#EB3D74
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A1FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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