#7A2197#7A2197

#7A2197 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.187 H 316.1°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#7A2197
RGBrgb(122, 33, 151)
HSLhsl(285, 64%, 36%)
HSVhsv(285, 78%, 59%)
CMYKcmyk(19.2%, 78.1%, 0%, 40.8%)
CIE-LABlab(32.83, 54.54, -45.90)
CIE-LCHlch(32.83, 71.29, 319.92°)
OKLaboklab(44.53% 0.1345 -0.1294)
OKLCHoklch(44.53% 0.187 316.1)
XYZxyz(14.1549, 7.4602, 29.9665)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2197 #3E9721
analogous
#3F2197 #7A2197 #972179
triadic
#7A2197 #977A21 #21977A
tetradic
#7A2197 #973F21 #3E9721 #217997
square
#7A2197 #973F21 #3E9721 #217997
split-complementary
#7A2197 #799721 #21973F
monochromatic
#290B33 #511665 #7A2197 #A32CC9 #BA58DA

Accessibility & contrast

On white

8.43
#7A2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7A2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2197
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2197#FFFFFF#000000##FFFFFF
##7A21971.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#1F5094
Tritanopia (blue-blind)
#783C5B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a2197;
/* rgb */ color: rgb(122, 33, 151);
/* oklch */ color: oklch(44.5% 0.187 316.1);
Tailwind
colors: {
  custom: {
    50: '#a467b6',
    500: '#7a2197',
    950: '#000000',
  },
}
SCSS
$custom: #7a2197;
$custom-light: #a467b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2197",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 285.254,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44533,
    "c": 0.18666,
    "h": 316.1
  },
  "luminance": 0.0746
}

Semantic roles & 50–950 ramp

primary
#7A2197
secondary
#6FBE55
accent
#E7416A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2197

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

Preview Lab → · Contrast checker → · Palette generator →

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