#7A2180#7A2180

#7A2180 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.166 H 325.2°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#7A2180
RGBrgb(122, 33, 128)
HSLhsl(296, 59%, 32%)
HSVhsv(296, 74%, 50%)
CMYKcmyk(4.7%, 74.2%, 0%, 49.8%)
CIE-LABlab(31.31, 50.11, -34.11)
CIE-LCHlch(31.31, 60.62, 325.75°)
OKLaboklab(42.97% 0.1367 -0.0949)
OKLCHoklch(42.97% 0.166 325.2)
XYZxyz(12.4659, 6.7846, 21.0709)
Luminance0.0678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2180 #278021
analogous
#4B2180 #7A2180 #802157
triadic
#7A2180 #807A21 #21807A
tetradic
#7A2180 #804B21 #278021 #215780
square
#7A2180 #804B21 #278021 #215780
split-complementary
#7A2180 #578021 #21804B
monochromatic
#1D081F #4C144F #7A2180 #A82EB1 #C84BD1

Accessibility & contrast

On white

8.91
#7A2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2180
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2180#FFFFFF#000000##FFFFFF
##7A21801.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054383
Deuteranopia (green-blind)
#354D7E
Tritanopia (blue-blind)
#7D314E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a2180;
/* rgb */ color: rgb(122, 33, 128);
/* oklch */ color: oklch(43.0% 0.166 325.2);
Tailwind
colors: {
  custom: {
    50: '#a466a5',
    500: '#7a2180',
    950: '#000000',
  },
}
SCSS
$custom: #7a2180;
$custom-light: #a466a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2180",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 296.211,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42967,
    "c": 0.16641,
    "h": 325.2
  },
  "luminance": 0.06784
}

Semantic roles & 50–950 ramp

primary
#7A2180
secondary
#51B34A
accent
#E2464F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A2180

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

Preview Lab → · Contrast checker → · Palette generator →

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