#7A1E7C#7A1E7C

#7A1E7C is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.166 H 327.1°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7A1E7C
RGBrgb(122, 30, 124)
HSLhsl(299, 61%, 30%)
HSVhsv(299, 76%, 49%)
CMYKcmyk(1.6%, 75.8%, 0%, 51.4%)
CIE-LABlab(30.69, 50.46, -32.58)
CIE-LCHlch(30.69, 60.06, 327.15°)
OKLaboklab(42.45% 0.1398 -0.0904)
OKLCHoklch(42.45% 0.166 327.1)
XYZxyz(12.1282, 6.5222, 19.6850)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1E7C #207C1E
analogous
#4B1E7C #7A1E7C #7C1E4F
triadic
#7A1E7C #7C7A1E #1E7C7A
tetradic
#7A1E7C #7C4B1E #207C1E #1E4F7C
square
#7A1E7C #7C4B1E #207C1E #1E4F7C
split-complementary
#7A1E7C #4F7C1E #1E7C4B
monochromatic
#190619 #4A124B #7A1E7C #AA2AAD #CE43D1

Accessibility & contrast

On white

9.11
#7A1E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7A1E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1E7C
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1E7C#FFFFFF#000000##FFFFFF
##7A1E7C1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07417F
Deuteranopia (green-blind)
#364C7A
Tritanopia (blue-blind)
#7E2D4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a1e7c;
/* rgb */ color: rgb(122, 30, 124);
/* oklch */ color: oklch(42.4% 0.166 327.1);
Tailwind
colors: {
  custom: {
    50: '#a465a2',
    500: '#7a1e7c',
    950: '#000000',
  },
}
SCSS
$custom: #7a1e7c;
$custom-light: #a465a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1e7c",
  "rgb": {
    "r": 122,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 298.723,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42447,
    "c": 0.16647,
    "h": 327.1
  },
  "luminance": 0.06521
}

Semantic roles & 50–950 ramp

primary
#7A1E7C
secondary
#49AF46
accent
#E44447
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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