#7A1EA7#7A1EA7

#7A1EA7 is a mid, highly saturated purple. Relative luminance 0.079; OKLCH L 45.5% C 0.204 H 311.0°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7A1EA7
RGBrgb(122, 30, 167)
HSLhsl(280, 70%, 39%)
HSVhsv(280, 82%, 65%)
CMYKcmyk(26.9%, 82%, 0%, 34.5%)
CIE-LABlab(33.68, 58.81, -54.22)
CIE-LCHlch(33.68, 79.99, 317.32°)
OKLaboklab(45.5% 0.1337 -0.1538)
OKLCHoklch(45.5% 0.204 311)
XYZxyz(15.4640, 7.8565, 37.2536)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1EA7 #4BA71E
analogous
#351EA7 #7A1EA7 #A71E8F
triadic
#7A1EA7 #A77A1E #1EA77A
tetradic
#7A1EA7 #A7351E #4BA71E #1E8FA7
square
#7A1EA7 #A7351E #4BA71E #1E8FA7
split-complementary
#7A1EA7 #8FA71E #1EA735
monochromatic
#2E0B3F #541573 #7A1EA7 #9F2AD9 #B65DE2

Accessibility & contrast

On white

8.17
#7A1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7A1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1EA7
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1EA7#FFFFFF#000000##FFFFFF
##7A1EA71.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0051A4
Tritanopia (blue-blind)
#744264
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a1ea7;
/* rgb */ color: rgb(122, 30, 167);
/* oklch */ color: oklch(45.5% 0.204 311.0);
Tailwind
colors: {
  custom: {
    50: '#a567c2',
    500: '#7a1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #7a1ea7;
$custom-light: #a567c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1ea7",
  "rgb": {
    "r": 122,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 280.292,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45504,
    "c": 0.20383,
    "h": 311
  },
  "luminance": 0.07856
}

Semantic roles & 50–950 ramp

primary
#7A1EA7
secondary
#7EC65B
accent
#EC3B76
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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