#7A1881#7A1881

#7A1881 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.177 H 325.1°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7A1881
RGBrgb(122, 24, 129)
HSLhsl(296, 69%, 30%)
HSVhsv(296, 81%, 51%)
CMYKcmyk(5.4%, 81.4%, 0%, 49.4%)
CIE-LABlab(30.34, 53.25, -36.28)
CIE-LCHlch(30.34, 64.44, 325.73°)
OKLaboklab(42.3% 0.1448 -0.1012)
OKLCHoklch(42.3% 0.177 325.1)
XYZxyz(12.3148, 6.3766, 21.3468)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1881 #1F8118
analogous
#461881 #7A1881 #811853
triadic
#7A1881 #817A18 #18817A
tetradic
#7A1881 #814618 #1F8118 #185381
square
#7A1881 #814618 #1F8118 #185381
split-complementary
#7A1881 #538118 #188146
monochromatic
#18051A #490E4D #7A1881 #AB22B5 #CF39DA

Accessibility & contrast

On white

9.23
#7A1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7A1881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1881
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1881#FFFFFF#000000##FFFFFF
##7A18811.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#304B7F
Tritanopia (blue-blind)
#7D2C4D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a1881;
/* rgb */ color: rgb(122, 24, 129);
/* oklch */ color: oklch(42.3% 0.177 325.1);
Tailwind
colors: {
  custom: {
    50: '#a462a6',
    500: '#7a1881',
    950: '#000000',
  },
}
SCSS
$custom: #7a1881;
$custom-light: #a462a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1881",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 296,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.42298,
    "c": 0.17667,
    "h": 325.1
  },
  "luminance": 0.06376
}

Semantic roles & 50–950 ramp

primary
#7A1881
secondary
#47B540
accent
#EB3C48
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1881

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

Preview Lab → · Contrast checker → · Palette generator →

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