#7A1C82#7A1C82

#7A1C82 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.174 H 324.5°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#7A1C82
RGBrgb(122, 28, 130)
HSLhsl(295, 65%, 31%)
HSVhsv(295, 78%, 51%)
CMYKcmyk(6.2%, 78.5%, 0%, 49%)
CIE-LABlab(30.83, 52.20, -36.13)
CIE-LCHlch(30.83, 63.49, 325.31°)
OKLaboklab(42.67% 0.1414 -0.1007)
OKLCHoklch(42.67% 0.174 324.5)
XYZxyz(12.4702, 6.5806, 21.7281)
Luminance0.0658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1C82 #24821C
analogous
#471C82 #7A1C82 #821C57
triadic
#7A1C82 #827A1C #1C827A
tetradic
#7A1C82 #82471C #24821C #1C5782
square
#7A1C82 #82471C #24821C #1C5782
split-complementary
#7A1C82 #57821C #1C8247
monochromatic
#1B061D #4B1150 #7A1C82 #A927B4 #CB42D6

Accessibility & contrast

On white

9.07
#7A1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7A1C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1C82
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1C82#FFFFFF#000000##FFFFFF
##7A1C821.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#314C80
Tritanopia (blue-blind)
#7D2F4E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a1c82;
/* rgb */ color: rgb(122, 28, 130);
/* oklch */ color: oklch(42.7% 0.174 324.5);
Tailwind
colors: {
  custom: {
    50: '#a464a7',
    500: '#7a1c82',
    950: '#000000',
  },
}
SCSS
$custom: #7a1c82;
$custom-light: #a464a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1c82",
  "rgb": {
    "r": 122,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 295.294,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42665,
    "c": 0.1736,
    "h": 324.5
  },
  "luminance": 0.0658
}

Semantic roles & 50–950 ramp

primary
#7A1C82
secondary
#4DB544
accent
#E8404D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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