#7A1F89#7A1F89

#7A1F89 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.176 H 321.5°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7A1F89
RGBrgb(122, 31, 137)
HSLhsl(292, 63%, 33%)
HSVhsv(292, 77%, 54%)
CMYKcmyk(10.9%, 77.4%, 0%, 46.3%)
CIE-LABlab(31.63, 52.50, -39.21)
CIE-LCHlch(31.63, 65.52, 323.25°)
OKLaboklab(43.38% 0.1381 -0.1098)
OKLCHoklch(43.38% 0.176 321.5)
XYZxyz(13.0309, 6.9244, 24.3122)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F89 #2E891F
analogous
#451F89 #7A1F89 #891F63
triadic
#7A1F89 #897A1F #1F897A
tetradic
#7A1F89 #89451F #2E891F #1F6389
square
#7A1F89 #89451F #2E891F #1F6389
split-complementary
#7A1F89 #63891F #1F8945
monochromatic
#210825 #4E1457 #7A1F89 #A62ABB #C34CD6

Accessibility & contrast

On white

8.81
#7A1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7A1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F89
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F89#FFFFFF#000000##FFFFFF
##7A1F891.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448C
Deuteranopia (green-blind)
#2D4E87
Tritanopia (blue-blind)
#7B3453
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a1f89;
/* rgb */ color: rgb(122, 31, 137);
/* oklch */ color: oklch(43.4% 0.176 321.5);
Tailwind
colors: {
  custom: {
    50: '#a466ac',
    500: '#7a1f89',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f89;
$custom-light: #a466ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f89",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 291.509,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.4338,
    "c": 0.17641,
    "h": 321.5
  },
  "luminance": 0.06924
}

Semantic roles & 50–950 ramp

primary
#7A1F89
secondary
#5AB94B
accent
#E64259
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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