#7A1F7D#7A1F7D

#7A1F7D is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.166 H 326.6°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#7A1F7D
RGBrgb(122, 31, 125)
HSLhsl(298, 60%, 31%)
HSVhsv(298, 75%, 49%)
CMYKcmyk(2.4%, 75.2%, 0%, 51%)
CIE-LABlab(30.88, 50.29, -32.92)
CIE-LCHlch(30.88, 60.10, 326.79°)
OKLaboklab(42.6% 0.1388 -0.0914)
OKLCHoklch(42.6% 0.166 326.6)
XYZxyz(12.2175, 6.5991, 20.0283)
Luminance0.0660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F7D #227D1F
analogous
#4B1F7D #7A1F7D #7D1F51
triadic
#7A1F7D #7D7A1F #1F7D7A
tetradic
#7A1F7D #7D4B1F #227D1F #1F517D
square
#7A1F7D #7D4B1F #227D1F #1F517D
split-complementary
#7A1F7D #517D1F #1F7D4B
monochromatic
#1A071B #4A134C #7A1F7D #AA2BAE #CD45D1

Accessibility & contrast

On white

9.05
#7A1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7A1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F7D
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F7D#FFFFFF#000000##FFFFFF
##7A1F7D1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074180
Deuteranopia (green-blind)
#364D7B
Tritanopia (blue-blind)
#7D2E4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a1f7d;
/* rgb */ color: rgb(122, 31, 125);
/* oklch */ color: oklch(42.6% 0.166 326.6);
Tailwind
colors: {
  custom: {
    50: '#a465a3',
    500: '#7a1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f7d;
$custom-light: #a465a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f7d",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 298.085,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42597,
    "c": 0.16619,
    "h": 326.6
  },
  "luminance": 0.06598
}

Semantic roles & 50–950 ramp

primary
#7A1F7D
secondary
#4BB048
accent
#E34449
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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