#7A1F9F#7A1F9F

#7A1F9F is a dark, vivid purple. Relative luminance 0.076; OKLCH L 45.0% C 0.196 H 313.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7A1F9F
RGBrgb(122, 31, 159)
HSLhsl(283, 67%, 37%)
HSVhsv(283, 81%, 62%)
CMYKcmyk(23.3%, 80.5%, 0%, 37.6%)
CIE-LABlab(33.18, 56.84, -50.21)
CIE-LCHlch(33.18, 75.84, 318.55°)
OKLaboklab(44.96% 0.1348 -0.142)
OKLCHoklch(44.96% 0.196 313.5)
XYZxyz(14.7729, 7.6212, 33.4870)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F9F #449F1F
analogous
#3A1F9F #7A1F9F #9F1F84
triadic
#7A1F9F #9F7A1F #1F9F7A
tetradic
#7A1F9F #9F3A1F #449F1F #1F849F
square
#7A1F9F #9F3A1F #449F1F #1F849F
split-complementary
#7A1F9F #849F1F #1F9F3A
monochromatic
#2B0B39 #53156C #7A1F9F #A129D2 #B85ADF

Accessibility & contrast

On white

8.32
#7A1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7A1F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F9F
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F9F#FFFFFF#000000##FFFFFF
##7A1F9F1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#0E509C
Tritanopia (blue-blind)
#763E60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a1f9f;
/* rgb */ color: rgb(122, 31, 159);
/* oklch */ color: oklch(45.0% 0.196 313.5);
Tailwind
colors: {
  custom: {
    50: '#a567bc',
    500: '#7a1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f9f;
$custom-light: #a567bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f9f",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 282.656,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44962,
    "c": 0.19579,
    "h": 313.5
  },
  "luminance": 0.07621
}

Semantic roles & 50–950 ramp

primary
#7A1F9F
secondary
#76C357
accent
#EA3E6F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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