#7A2170#7A2170

#7A2170 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.0% C 0.153 H 332.9°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#7A2170
RGBrgb(122, 33, 112)
HSLhsl(307, 57%, 30%)
HSVhsv(307, 73%, 48%)
CMYKcmyk(0%, 73%, 8.2%, 52.2%)
CIE-LABlab(30.39, 47.30, -25.46)
CIE-LCHlch(30.39, 53.72, 331.71°)
OKLaboklab(42.01% 0.1363 -0.0698)
OKLCHoklch(42.01% 0.153 332.9)
XYZxyz(11.4946, 6.3961, 15.9553)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2170 #217A2B
analogous
#58217A #7A2170 #7A2143
triadic
#7A2170 #707A21 #21707A
tetradic
#7A2170 #7A5821 #217A2B #21437A
square
#7A2170 #7A5821 #217A2B #21437A
split-complementary
#7A2170 #437A21 #217A58
monochromatic
#1A0718 #4A1444 #7A2170 #AA2E9C #CD48BE

Accessibility & contrast

On white

9.21
#7A2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7A2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2170
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2170#FFFFFF#000000##FFFFFF
##7A21701.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3F72
Deuteranopia (green-blind)
#3E4C6E
Tritanopia (blue-blind)
#802A46
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a2170;
/* rgb */ color: rgb(122, 33, 112);
/* oklch */ color: oklch(42.0% 0.153 332.9);
Tailwind
colors: {
  custom: {
    50: '#a36599',
    500: '#7a2170',
    950: '#000000',
  },
}
SCSS
$custom: #7a2170;
$custom-light: #a36599;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2170",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 306.742,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42007,
    "c": 0.15313,
    "h": 332.9
  },
  "luminance": 0.06395
}

Semantic roles & 50–950 ramp

primary
#7A2170
secondary
#4AAD55
accent
#E15847
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #7A2170

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

Preview Lab → · Contrast checker → · Palette generator →

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