#7A2174#7A2174

#7A2174 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.2% C 0.156 H 330.8°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#7A2174
RGBrgb(122, 33, 116)
HSLhsl(304, 57%, 30%)
HSVhsv(304, 73%, 48%)
CMYKcmyk(0%, 73%, 4.9%, 52.2%)
CIE-LABlab(30.61, 47.98, -27.66)
CIE-LCHlch(30.61, 55.38, 330.04°)
OKLaboklab(42.24% 0.1366 -0.0762)
OKLCHoklch(42.24% 0.156 330.8)
XYZxyz(11.7223, 6.4872, 17.1544)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2174 #217A27
analogous
#53217A #7A2174 #7A2147
triadic
#7A2174 #747A21 #21747A
tetradic
#7A2174 #7A5321 #217A27 #21477A
square
#7A2174 #7A5321 #217A27 #21477A
split-complementary
#7A2174 #477A21 #217A53
monochromatic
#1A0718 #4A1446 #7A2174 #AA2EA2 #CD48C4

Accessibility & contrast

On white

9.14
#7A2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7A2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2174
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2174#FFFFFF#000000##FFFFFF
##7A21741.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194076
Deuteranopia (green-blind)
#3C4C72
Tritanopia (blue-blind)
#7F2C48
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a2174;
/* rgb */ color: rgb(122, 33, 116);
/* oklch */ color: oklch(42.2% 0.156 330.8);
Tailwind
colors: {
  custom: {
    50: '#a3659c',
    500: '#7a2174',
    950: '#000000',
  },
}
SCSS
$custom: #7a2174;
$custom-light: #a3659c;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2174",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 304.045,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42236,
    "c": 0.15637,
    "h": 330.8
  },
  "luminance": 0.06486
}

Semantic roles & 50–950 ramp

primary
#7A2174
secondary
#4AAD50
accent
#E15147
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A2174

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

Preview Lab → · Contrast checker → · Palette generator →

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