#7A1FA0#7A1FA0

#7A1FA0 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.197 H 313.2°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7A1FA0
RGBrgb(122, 31, 160)
HSLhsl(282, 68%, 37%)
HSVhsv(282, 81%, 63%)
CMYKcmyk(23.7%, 80.6%, 0%, 37.3%)
CIE-LABlab(33.26, 57.05, -50.69)
CIE-LCHlch(33.26, 76.31, 318.38°)
OKLaboklab(45.04% 0.1346 -0.1434)
OKLCHoklch(45.04% 0.197 313.2)
XYZxyz(14.8601, 7.6561, 33.9459)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1FA0 #45A01F
analogous
#3A1FA0 #7A1FA0 #A01F85
triadic
#7A1FA0 #A07A1F #1FA07A
tetradic
#7A1FA0 #A03A1F #45A01F #1F85A0
square
#7A1FA0 #A03A1F #45A01F #1F85A0
split-complementary
#7A1FA0 #85A01F #1FA03A
monochromatic
#2C0B39 #53156D #7A1FA0 #A129D3 #B85ADF

Accessibility & contrast

On white

8.30
#7A1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7A1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1FA0
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1FA0#FFFFFF#000000##FFFFFF
##7A1FA01.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#0A509D
Tritanopia (blue-blind)
#763F60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a1fa0;
/* rgb */ color: rgb(122, 31, 160);
/* oklch */ color: oklch(45.0% 0.197 313.2);
Tailwind
colors: {
  custom: {
    50: '#a567bd',
    500: '#7a1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #7a1fa0;
$custom-light: #a567bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1fa0",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 282.326,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45038,
    "c": 0.19668,
    "h": 313.2
  },
  "luminance": 0.07656
}

Semantic roles & 50–950 ramp

primary
#7A1FA0
secondary
#77C358
accent
#EA3D70
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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