#7A2198#7A2198

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

Color values

HEX#7A2198
RGBrgb(122, 33, 152)
HSLhsl(285, 64%, 36%)
HSVhsv(285, 78%, 60%)
CMYKcmyk(19.7%, 78.3%, 0%, 40.4%)
CIE-LABlab(32.90, 54.75, -46.40)
CIE-LCHlch(32.90, 71.76, 319.72°)
OKLaboklab(44.61% 0.1344 -0.1308)
OKLCHoklch(44.61% 0.188 315.8)
XYZxyz(14.2365, 7.4928, 30.3960)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2198 #3F9821
analogous
#3F2198 #7A2198 #98217B
triadic
#7A2198 #987A21 #21987A
tetradic
#7A2198 #983F21 #3F9821 #217B98
square
#7A2198 #983F21 #3F9821 #217B98
split-complementary
#7A2198 #7B9821 #21983F
monochromatic
#290B33 #521666 #7A2198 #A22CCA #BA59DB

Accessibility & contrast

On white

8.41
#7A2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7A2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2198
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2198#FFFFFF#000000##FFFFFF
##7A21981.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#1E5095
Tritanopia (blue-blind)
#783C5C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a2198;
/* rgb */ color: rgb(122, 33, 152);
/* oklch */ color: oklch(44.6% 0.188 315.8);
Tailwind
colors: {
  custom: {
    50: '#a467b7',
    500: '#7a2198',
    950: '#000000',
  },
}
SCSS
$custom: #7a2198;
$custom-light: #a467b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2198",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 284.874,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44605,
    "c": 0.18756,
    "h": 315.8
  },
  "luminance": 0.07492
}

Semantic roles & 50–950 ramp

primary
#7A2198
secondary
#70BF56
accent
#E7406B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2198

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

Preview Lab → · Contrast checker → · Palette generator →

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