#7A1687#7A1687

#7A1687 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.183 H 322.7°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7A1687
RGBrgb(122, 22, 135)
HSLhsl(293, 72%, 31%)
HSVhsv(293, 84%, 53%)
CMYKcmyk(9.6%, 83.7%, 0%, 47.1%)
CIE-LABlab(30.55, 54.88, -39.71)
CIE-LCHlch(30.55, 67.74, 324.12°)
OKLaboklab(42.57% 0.1457 -0.1112)
OKLCHoklch(42.57% 0.183 322.7)
XYZxyz(12.6857, 6.4614, 23.4960)
Luminance0.0646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1687 #238716
analogous
#411687 #7A1687 #87165B
triadic
#7A1687 #877A16 #16877A
tetradic
#7A1687 #874116 #238716 #165B87
square
#7A1687 #874116 #238716 #165B87
split-complementary
#7A1687 #5B8716 #168741
monochromatic
#1B051E #4A0D52 #7A1687 #AA1FBC #CC39DF

Accessibility & contrast

On white

9.16
#7A1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7A1687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1687
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1687#FFFFFF#000000##FFFFFF
##7A16871.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#2A4C85
Tritanopia (blue-blind)
#7C2F50
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a1687;
/* rgb */ color: rgb(122, 22, 135);
/* oklch */ color: oklch(42.6% 0.183 322.7);
Tailwind
colors: {
  custom: {
    50: '#a462aa',
    500: '#7a1687',
    950: '#000000',
  },
}
SCSS
$custom: #7a1687;
$custom-light: #a462aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1687",
  "rgb": {
    "r": 122,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 293.097,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42569,
    "c": 0.18329,
    "h": 322.7
  },
  "luminance": 0.06461
}

Semantic roles & 50–950 ramp

primary
#7A1687
secondary
#4CBB3E
accent
#EF394E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1687

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

Preview Lab → · Contrast checker → · Palette generator →

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