#7A1D87#7A1D87

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

Color values

HEX#7A1D87
RGBrgb(122, 29, 135)
HSLhsl(293, 65%, 32%)
HSVhsv(293, 79%, 53%)
CMYKcmyk(9.6%, 78.5%, 0%, 47.1%)
CIE-LABlab(31.27, 52.80, -38.55)
CIE-LCHlch(31.27, 65.37, 323.86°)
OKLaboklab(43.08% 0.1401 -0.1078)
OKLCHoklch(43.08% 0.177 322.4)
XYZxyz(12.8381, 6.7663, 23.5468)
Luminance0.0677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1D87 #2A871D
analogous
#451D87 #7A1D87 #871D5F
triadic
#7A1D87 #877A1D #1D877A
tetradic
#7A1D87 #87451D #2A871D #1D5F87
square
#7A1D87 #87451D #2A871D #1D5F87
split-complementary
#7A1D87 #5F871D #1D8745
monochromatic
#1F0722 #4C1255 #7A1D87 #A828B9 #C647D7

Accessibility & contrast

On white

8.92
#7A1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7A1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1D87
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1D87#FFFFFF#000000##FFFFFF
##7A1D871.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a1d87;
/* rgb */ color: rgb(122, 29, 135);
/* oklch */ color: oklch(43.1% 0.177 322.4);
Tailwind
colors: {
  custom: {
    50: '#a465aa',
    500: '#7a1d87',
    950: '#000000',
  },
}
SCSS
$custom: #7a1d87;
$custom-light: #a465aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1d87",
  "rgb": {
    "r": 122,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 292.642,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43079,
    "c": 0.17678,
    "h": 322.4
  },
  "luminance": 0.06766
}

Semantic roles & 50–950 ramp

primary
#7A1D87
secondary
#54B946
accent
#E84055
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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