#7A1E87#7A1E87

#7A1E87 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.176 H 322.4°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#7A1E87
RGBrgb(122, 30, 135)
HSLhsl(293, 64%, 32%)
HSVhsv(293, 78%, 53%)
CMYKcmyk(9.6%, 77.8%, 0%, 47.1%)
CIE-LABlab(31.38, 52.46, -38.36)
CIE-LCHlch(31.38, 64.99, 323.82°)
OKLaboklab(43.16% 0.1392 -0.1073)
OKLCHoklch(43.16% 0.176 322.4)
XYZxyz(12.8630, 6.8161, 23.5551)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1E87 #2B871E
analogous
#451E87 #7A1E87 #871E60
triadic
#7A1E87 #877A1E #1E877A
tetradic
#7A1E87 #87451E #2B871E #1E6087
square
#7A1E87 #87451E #2B871E #1E6087
split-complementary
#7A1E87 #60871E #1E8745
monochromatic
#1F0823 #4D1355 #7A1E87 #A729B9 #C549D7

Accessibility & contrast

On white

8.89
#7A1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7A1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1E87
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1E87#FFFFFF#000000##FFFFFF
##7A1E871.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#2E4D85
Tritanopia (blue-blind)
#7C3352
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a1e87;
/* rgb */ color: rgb(122, 30, 135);
/* oklch */ color: oklch(43.2% 0.176 322.4);
Tailwind
colors: {
  custom: {
    50: '#a465aa',
    500: '#7a1e87',
    950: '#000000',
  },
}
SCSS
$custom: #7a1e87;
$custom-light: #a465aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1e87",
  "rgb": {
    "r": 122,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 292.571,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43161,
    "c": 0.17575,
    "h": 322.4
  },
  "luminance": 0.06815
}

Semantic roles & 50–950 ramp

primary
#7A1E87
secondary
#56B948
accent
#E74156
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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