#7A1F99#7A1F99

#7A1F99 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.5% C 0.190 H 315.5°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7A1F99
RGBrgb(122, 31, 153)
HSLhsl(285, 66%, 36%)
HSVhsv(285, 80%, 60%)
CMYKcmyk(20.3%, 79.7%, 0%, 40%)
CIE-LABlab(32.74, 55.63, -47.27)
CIE-LCHlch(32.74, 73.00, 319.64°)
OKLaboklab(44.51% 0.1359 -0.1334)
OKLCHoklch(44.51% 0.19 315.5)
XYZxyz(14.2649, 7.4180, 30.8112)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F99 #3E991F
analogous
#3D1F99 #7A1F99 #991F7B
triadic
#7A1F99 #997A1F #1F997A
tetradic
#7A1F99 #993D1F #3E991F #1F7B99
square
#7A1F99 #993D1F #3E991F #1F7B99
split-complementary
#7A1F99 #7B991F #1F993D
monochromatic
#290A33 #511566 #7A1F99 #A329CC #BA56DD

Accessibility & contrast

On white

8.46
#7A1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7A1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F99
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F99#FFFFFF#000000##FFFFFF
##7A1F991.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#1B4F96
Tritanopia (blue-blind)
#783C5C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a1f99;
/* rgb */ color: rgb(122, 31, 153);
/* oklch */ color: oklch(44.5% 0.190 315.5);
Tailwind
colors: {
  custom: {
    50: '#a566b8',
    500: '#7a1f99',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f99;
$custom-light: #a566b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f99",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 284.754,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44513,
    "c": 0.19045,
    "h": 315.5
  },
  "luminance": 0.07417
}

Semantic roles & 50–950 ramp

primary
#7A1F99
secondary
#6FC054
accent
#E93F6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7A1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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