#7A2199#7A2199

#7A2199 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.188 H 315.4°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#7A2199
RGBrgb(122, 33, 153)
HSLhsl(285, 65%, 36%)
HSVhsv(285, 78%, 60%)
CMYKcmyk(20.3%, 78.4%, 0%, 40%)
CIE-LABlab(32.97, 54.95, -46.89)
CIE-LCHlch(32.97, 72.24, 319.52°)
OKLaboklab(44.68% 0.1342 -0.1323)
OKLCHoklch(44.68% 0.188 315.4)
XYZxyz(14.3187, 7.5257, 30.8292)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2199 #409921
analogous
#3E2199 #7A2199 #99217C
triadic
#7A2199 #997A21 #21997A
tetradic
#7A2199 #993E21 #409921 #217C99
square
#7A2199 #993E21 #409921 #217C99
split-complementary
#7A2199 #7C9921 #21993E
monochromatic
#2A0B34 #521667 #7A2199 #A22CCB #BA59DB

Accessibility & contrast

On white

8.38
#7A2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7A2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2199
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2199#FFFFFF#000000##FFFFFF
##7A21991.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#1D5096
Tritanopia (blue-blind)
#783C5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a2199;
/* rgb */ color: rgb(122, 33, 153);
/* oklch */ color: oklch(44.7% 0.188 315.4);
Tailwind
colors: {
  custom: {
    50: '#a567b8',
    500: '#7a2199',
    950: '#000000',
  },
}
SCSS
$custom: #7a2199;
$custom-light: #a567b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2199",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 284.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44678,
    "c": 0.18846,
    "h": 315.4
  },
  "luminance": 0.07525
}

Semantic roles & 50–950 ramp

primary
#7A2199
secondary
#72BF56
accent
#E8406B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2199

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

Preview Lab → · Contrast checker → · Palette generator →

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