#7A1F9C#7A1F9C

#7A1F9C is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.193 H 314.5°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#7A1F9C
RGBrgb(122, 31, 156)
HSLhsl(284, 67%, 37%)
HSVhsv(284, 80%, 61%)
CMYKcmyk(21.8%, 80.1%, 0%, 38.8%)
CIE-LABlab(32.96, 56.23, -48.74)
CIE-LCHlch(32.96, 74.42, 319.08°)
OKLaboklab(44.74% 0.1354 -0.1377)
OKLCHoklch(44.74% 0.193 314.5)
XYZxyz(14.5158, 7.5184, 32.1326)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F9C #419C1F
analogous
#3C1F9C #7A1F9C #9C1F80
triadic
#7A1F9C #9C7A1F #1F9C7A
tetradic
#7A1F9C #9C3C1F #419C1F #1F809C
square
#7A1F9C #9C3C1F #419C1F #1F809C
split-complementary
#7A1F9C #809C1F #1F9C3C
monochromatic
#2A0B36 #521569 #7A1F9C #A229CF #B958DE

Accessibility & contrast

On white

8.39
#7A1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7A1F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F9C
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F9C#FFFFFF#000000##FFFFFF
##7A1F9C1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#155099
Tritanopia (blue-blind)
#773D5E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a1f9c;
/* rgb */ color: rgb(122, 31, 156);
/* oklch */ color: oklch(44.7% 0.193 314.5);
Tailwind
colors: {
  custom: {
    50: '#a566ba',
    500: '#7a1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f9c;
$custom-light: #a566ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f9c",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 283.68,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44736,
    "c": 0.19311,
    "h": 314.5
  },
  "luminance": 0.07518
}

Semantic roles & 50–950 ramp

primary
#7A1F9C
secondary
#73C155
accent
#EA3E6D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7A1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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