#7A1F7F#7A1F7F

#7A1F7F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.168 H 325.7°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#7A1F7F
RGBrgb(122, 31, 127)
HSLhsl(297, 61%, 31%)
HSVhsv(297, 76%, 50%)
CMYKcmyk(3.9%, 75.6%, 0%, 50.2%)
CIE-LABlab(31.00, 50.65, -33.98)
CIE-LCHlch(31.00, 60.99, 326.14°)
OKLaboklab(42.72% 0.1387 -0.0945)
OKLCHoklch(42.72% 0.168 325.7)
XYZxyz(12.3465, 6.6507, 20.7080)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F7F #247F1F
analogous
#4A1F7F #7A1F7F #7F1F54
triadic
#7A1F7F #7F7A1F #1F7F7A
tetradic
#7A1F7F #7F4A1F #247F1F #1F547F
square
#7A1F7F #7F4A1F #247F1F #1F547F
split-complementary
#7A1F7F #547F1F #1F7F4A
monochromatic
#1B071D #4B134E #7A1F7F #A92BB0 #CB46D2

Accessibility & contrast

On white

9.01
#7A1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7A1F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F7F
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F7F#FFFFFF#000000##FFFFFF
##7A1F7F1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024282
Deuteranopia (green-blind)
#344D7D
Tritanopia (blue-blind)
#7D2F4D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a1f7f;
/* rgb */ color: rgb(122, 31, 127);
/* oklch */ color: oklch(42.7% 0.168 325.7);
Tailwind
colors: {
  custom: {
    50: '#a465a4',
    500: '#7a1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f7f;
$custom-light: #a465a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f7f",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 296.875,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42723,
    "c": 0.16786,
    "h": 325.7
  },
  "luminance": 0.0665
}

Semantic roles & 50–950 ramp

primary
#7A1F7F
secondary
#4DB248
accent
#E4444C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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