#7A1F88#7A1F88

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

Color values

HEX#7A1F88
RGBrgb(122, 31, 136)
HSLhsl(292, 63%, 33%)
HSVhsv(292, 77%, 53%)
CMYKcmyk(10.3%, 77.2%, 0%, 46.7%)
CIE-LABlab(31.57, 52.31, -38.69)
CIE-LCHlch(31.57, 65.06, 323.51°)
OKLaboklab(43.31% 0.1382 -0.1082)
OKLCHoklch(43.31% 0.176 321.9)
XYZxyz(12.9595, 6.8959, 23.9362)
Luminance0.0689 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F88 #2D881F
analogous
#451F88 #7A1F88 #881F61
triadic
#7A1F88 #887A1F #1F887A
tetradic
#7A1F88 #88451F #2D881F #1F6188
square
#7A1F88 #88451F #2D881F #1F6188
split-complementary
#7A1F88 #61881F #1F8845
monochromatic
#210824 #4D1456 #7A1F88 #A72ABA #C44BD6

Accessibility & contrast

On white

8.83
#7A1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A1F88
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F88#FFFFFF#000000##FFFFFF
##7A1F881.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#2E4E86
Tritanopia (blue-blind)
#7B3452
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a1f88;
/* rgb */ color: rgb(122, 31, 136);
/* oklch */ color: oklch(43.3% 0.176 321.9);
Tailwind
colors: {
  custom: {
    50: '#a465ab',
    500: '#7a1f88',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f88;
$custom-light: #a465ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f88",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 292,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43312,
    "c": 0.17554,
    "h": 321.9
  },
  "luminance": 0.06895
}

Semantic roles & 50–950 ramp

primary
#7A1F88
secondary
#59B94A
accent
#E64258
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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