#7A1F87#7A1F87

#7A1F87 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.175 H 322.3°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#7A1F87
RGBrgb(122, 31, 135)
HSLhsl(293, 63%, 33%)
HSVhsv(293, 77%, 53%)
CMYKcmyk(9.6%, 77%, 0%, 47.1%)
CIE-LABlab(31.50, 52.12, -38.17)
CIE-LCHlch(31.50, 64.61, 323.78°)
OKLaboklab(43.25% 0.1383 -0.1067)
OKLCHoklch(43.25% 0.175 322.3)
XYZxyz(12.8888, 6.8676, 23.5637)
Luminance0.0687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F87 #2C871F
analogous
#461F87 #7A1F87 #871F60
triadic
#7A1F87 #877A1F #1F877A
tetradic
#7A1F87 #87461F #2C871F #1F6087
square
#7A1F87 #87461F #2C871F #1F6087
split-complementary
#7A1F87 #60871F #1F8746
monochromatic
#200823 #4D1455 #7A1F87 #A72AB9 #C44BD6

Accessibility & contrast

On white

8.85
#7A1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7A1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F87
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F87#FFFFFF#000000##FFFFFF
##7A1F871.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#2F4E85
Tritanopia (blue-blind)
#7C3352
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a1f87;
/* rgb */ color: rgb(122, 31, 135);
/* oklch */ color: oklch(43.2% 0.175 322.3);
Tailwind
colors: {
  custom: {
    50: '#a465aa',
    500: '#7a1f87',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f87;
$custom-light: #a465aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f87",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 292.5,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43245,
    "c": 0.17468,
    "h": 322.3
  },
  "luminance": 0.06867
}

Semantic roles & 50–950 ramp

primary
#7A1F87
secondary
#57B84A
accent
#E64257
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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