#7A2188#7A2188

#7A2188 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.173 H 321.8°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#7A2188
RGBrgb(122, 33, 136)
HSLhsl(292, 61%, 33%)
HSVhsv(292, 76%, 53%)
CMYKcmyk(10.3%, 75.7%, 0%, 46.7%)
CIE-LABlab(31.82, 51.60, -38.30)
CIE-LCHlch(31.82, 64.26, 323.42°)
OKLaboklab(43.49% 0.1363 -0.1071)
OKLCHoklch(43.49% 0.173 321.8)
XYZxyz(13.0134, 7.0036, 23.9542)
Luminance0.0700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2188 #2F8821
analogous
#462188 #7A2188 #882162
triadic
#7A2188 #887A21 #21887A
tetradic
#7A2188 #884621 #2F8821 #216288
square
#7A2188 #884621 #2F8821 #216288
split-complementary
#7A2188 #628821 #218846
monochromatic
#220925 #4E1557 #7A2188 #A62DB9 #C24FD4

Accessibility & contrast

On white

8.75
#7A2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7A2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2188
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2188#FFFFFF#000000##FFFFFF
##7A21881.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#2F4E86
Tritanopia (blue-blind)
#7B3553
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a2188;
/* rgb */ color: rgb(122, 33, 136);
/* oklch */ color: oklch(43.5% 0.173 321.8);
Tailwind
colors: {
  custom: {
    50: '#a466ab',
    500: '#7a2188',
    950: '#000000',
  },
}
SCSS
$custom: #7a2188;
$custom-light: #a466ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2188",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 291.845,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43487,
    "c": 0.17334,
    "h": 321.8
  },
  "luminance": 0.07003
}

Semantic roles & 50–950 ramp

primary
#7A2188
secondary
#5CB84D
accent
#E4445A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A2188

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

Preview Lab → · Contrast checker → · Palette generator →

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