#7A1EA1#7A1EA1

#7A1EA1 is a mid, vivid purple. Relative luminance 0.076; OKLCH L 45.0% C 0.198 H 312.9°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7A1EA1
RGBrgb(122, 30, 161)
HSLhsl(282, 69%, 37%)
HSVhsv(282, 81%, 63%)
CMYKcmyk(24.2%, 81.4%, 0%, 36.9%)
CIE-LABlab(33.22, 57.57, -51.35)
CIE-LCHlch(33.22, 77.15, 318.27°)
OKLaboklab(45.04% 0.1351 -0.1454)
OKLCHoklch(45.04% 0.198 312.9)
XYZxyz(14.9222, 7.6398, 34.3999)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1EA1 #45A11E
analogous
#381EA1 #7A1EA1 #A11E87
triadic
#7A1EA1 #A17A1E #1EA17A
tetradic
#7A1EA1 #A1381E #45A11E #1E87A1
square
#7A1EA1 #A1381E #45A11E #1E87A1
split-complementary
#7A1EA1 #87A11E #1EA138
monochromatic
#2C0B3A #53146D #7A1EA1 #A128D5 #B859E0

Accessibility & contrast

On white

8.31
#7A1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7A1EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1EA1
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1EA1#FFFFFF#000000##FFFFFF
##7A1EA11.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a1ea1;
/* rgb */ color: rgb(122, 30, 161);
/* oklch */ color: oklch(45.0% 0.198 312.9);
Tailwind
colors: {
  custom: {
    50: '#a566be',
    500: '#7a1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #7a1ea1;
$custom-light: #a566be;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1ea1",
  "rgb": {
    "r": 122,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 282.137,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45037,
    "c": 0.19849,
    "h": 312.9
  },
  "luminance": 0.07639
}

Semantic roles & 50–950 ramp

primary
#7A1EA1
secondary
#77C457
accent
#EB3C70
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7A1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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