#7A2181#7A2181

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

Color values

HEX#7A2181
RGBrgb(122, 33, 129)
HSLhsl(296, 59%, 32%)
HSVhsv(296, 74%, 51%)
CMYKcmyk(5.4%, 74.4%, 0%, 49.4%)
CIE-LABlab(31.37, 50.29, -34.64)
CIE-LCHlch(31.37, 61.07, 325.44°)
OKLaboklab(43.03% 0.1367 -0.0964)
OKLCHoklch(43.03% 0.167 324.8)
XYZxyz(12.5320, 6.8111, 21.4192)
Luminance0.0681 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2181 #288121
analogous
#4A2181 #7A2181 #812158
triadic
#7A2181 #817A21 #21817A
tetradic
#7A2181 #814A21 #288121 #215881
square
#7A2181 #814A21 #288121 #215881
split-complementary
#7A2181 #588121 #21814A
monochromatic
#1E0820 #4C1550 #7A2181 #A82DB2 #C74BD1

Accessibility & contrast

On white

8.89
#7A2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2181
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2181#FFFFFF#000000##FFFFFF
##7A21811.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024384
Deuteranopia (green-blind)
#344D7F
Tritanopia (blue-blind)
#7D314F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a2181;
/* rgb */ color: rgb(122, 33, 129);
/* oklch */ color: oklch(43.0% 0.167 324.8);
Tailwind
colors: {
  custom: {
    50: '#a466a6',
    500: '#7a2181',
    950: '#000000',
  },
}
SCSS
$custom: #7a2181;
$custom-light: #a466a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2181",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 295.625,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4303,
    "c": 0.16727,
    "h": 324.8
  },
  "luminance": 0.0681
}

Semantic roles & 50–950 ramp

primary
#7A2181
secondary
#52B44A
accent
#E24551
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A2181

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

Preview Lab → · Contrast checker → · Palette generator →

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