#7A2187#7A2187

#7A2187 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.172 H 322.2°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#7A2187
RGBrgb(122, 33, 135)
HSLhsl(292, 61%, 33%)
HSVhsv(292, 76%, 53%)
CMYKcmyk(9.6%, 75.6%, 0%, 47.1%)
CIE-LABlab(31.75, 51.41, -37.78)
CIE-LCHlch(31.75, 63.80, 323.69°)
OKLaboklab(43.42% 0.1364 -0.1056)
OKLCHoklch(43.42% 0.172 322.2)
XYZxyz(12.9426, 6.9753, 23.5816)
Luminance0.0698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2187 #2E8721
analogous
#472187 #7A2187 #872161
triadic
#7A2187 #877A21 #21877A
tetradic
#7A2187 #874721 #2E8721 #216187
square
#7A2187 #874721 #2E8721 #216187
split-complementary
#7A2187 #618721 #218747
monochromatic
#210925 #4E1556 #7A2187 #A62DB8 #C34FD4

Accessibility & contrast

On white

8.77
#7A2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2187
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2187#FFFFFF#000000##FFFFFF
##7A21871.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#304E85
Tritanopia (blue-blind)
#7C3452
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a2187;
/* rgb */ color: rgb(122, 33, 135);
/* oklch */ color: oklch(43.4% 0.172 322.2);
Tailwind
colors: {
  custom: {
    50: '#a466aa',
    500: '#7a2187',
    950: '#000000',
  },
}
SCSS
$custom: #7a2187;
$custom-light: #a466aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2187",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 292.353,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43421,
    "c": 0.17247,
    "h": 322.2
  },
  "luminance": 0.06975
}

Semantic roles & 50–950 ramp

primary
#7A2187
secondary
#5AB74D
accent
#E44458
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A2187

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

Preview Lab → · Contrast checker → · Palette generator →

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