#7A1F9D#7A1F9D

#7A1F9D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.194 H 314.2°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#7A1F9D
RGBrgb(122, 31, 157)
HSLhsl(283, 67%, 37%)
HSVhsv(283, 80%, 62%)
CMYKcmyk(22.3%, 80.3%, 0%, 38.4%)
CIE-LABlab(33.03, 56.43, -49.23)
CIE-LCHlch(33.03, 74.89, 318.90°)
OKLaboklab(44.81% 0.1352 -0.1392)
OKLCHoklch(44.81% 0.194 314.2)
XYZxyz(14.6008, 7.5524, 32.5804)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F9D #429D1F
analogous
#3B1F9D #7A1F9D #9D1F81
triadic
#7A1F9D #9D7A1F #1F9D7A
tetradic
#7A1F9D #9D3B1F #429D1F #1F819D
square
#7A1F9D #9D3B1F #429D1F #1F819D
split-complementary
#7A1F9D #819D1F #1F9D3B
monochromatic
#2B0B37 #52156A #7A1F9D #A229D0 #B958DE

Accessibility & contrast

On white

8.37
#7A1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7A1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F9D
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F9D#FFFFFF#000000##FFFFFF
##7A1F9D1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#13509A
Tritanopia (blue-blind)
#773D5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a1f9d;
/* rgb */ color: rgb(122, 31, 157);
/* oklch */ color: oklch(44.8% 0.194 314.2);
Tailwind
colors: {
  custom: {
    50: '#a567bb',
    500: '#7a1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f9d;
$custom-light: #a567bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f9d",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 283.333,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44811,
    "c": 0.194,
    "h": 314.2
  },
  "luminance": 0.07552
}

Semantic roles & 50–950 ramp

primary
#7A1F9D
secondary
#74C256
accent
#EA3E6E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7A1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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