#7A1F7B#7A1F7B

#7A1F7B is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.165 H 327.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#7A1F7B
RGBrgb(122, 31, 123)
HSLhsl(299, 60%, 30%)
HSVhsv(299, 75%, 48%)
CMYKcmyk(0.8%, 74.8%, 0%, 51.8%)
CIE-LABlab(30.76, 49.93, -31.85)
CIE-LCHlch(30.76, 59.23, 327.46°)
OKLaboklab(42.47% 0.1388 -0.0883)
OKLCHoklch(42.47% 0.165 327.5)
XYZxyz(12.0910, 6.5485, 19.3622)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F7B #207B1F
analogous
#4C1F7B #7A1F7B #7B1F4E
triadic
#7A1F7B #7B7A1F #1F7B7A
tetradic
#7A1F7B #7B4C1F #207B1F #1F4E7B
square
#7A1F7B #7B4C1F #207B1F #1F4E7B
split-complementary
#7A1F7B #4E7B1F #1F7B4C
monochromatic
#190619 #4A134A #7A1F7B #AA2BAC #CE44D0

Accessibility & contrast

On white

9.09
#7A1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7A1F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F7B
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F7B#FFFFFF#000000##FFFFFF
##7A1F7B1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B417E
Deuteranopia (green-blind)
#374C79
Tritanopia (blue-blind)
#7E2D4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a1f7b;
/* rgb */ color: rgb(122, 31, 123);
/* oklch */ color: oklch(42.5% 0.165 327.5);
Tailwind
colors: {
  custom: {
    50: '#a465a1',
    500: '#7a1f7b',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f7b;
$custom-light: #a465a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f7b",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 299.348,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42472,
    "c": 0.16451,
    "h": 327.5
  },
  "luminance": 0.06548
}

Semantic roles & 50–950 ramp

primary
#7A1F7B
secondary
#49AE48
accent
#E34547
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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