#7A1FA6#7A1FA6

#7A1FA6 is a mid, highly saturated purple. Relative luminance 0.079; OKLCH L 45.5% C 0.202 H 311.2°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7A1FA6
RGBrgb(122, 31, 166)
HSLhsl(280, 69%, 39%)
HSVhsv(280, 81%, 65%)
CMYKcmyk(26.5%, 81.3%, 0%, 34.9%)
CIE-LABlab(33.71, 58.29, -53.57)
CIE-LCHlch(33.71, 79.17, 317.41°)
OKLaboklab(45.5% 0.1332 -0.1519)
OKLCHoklch(45.5% 0.202 311.2)
XYZxyz(15.3976, 7.8711, 36.7772)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1FA6 #4BA61F
analogous
#361FA6 #7A1FA6 #A61F8E
triadic
#7A1FA6 #A67A1F #1FA67A
tetradic
#7A1FA6 #A6361F #4BA61F #1F8EA6
square
#7A1FA6 #A6361F #4BA61F #1F8EA6
split-complementary
#7A1FA6 #8EA61F #1FA636
monochromatic
#2E0C3F #541572 #7A1FA6 #9F2BD7 #B65EE1

Accessibility & contrast

On white

8.16
#7A1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7A1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1FA6
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1FA6#FFFFFF#000000##FFFFFF
##7A1FA61.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0051A3
Tritanopia (blue-blind)
#744264
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a1fa6;
/* rgb */ color: rgb(122, 31, 166);
/* oklch */ color: oklch(45.5% 0.202 311.2);
Tailwind
colors: {
  custom: {
    50: '#a567c1',
    500: '#7a1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #7a1fa6;
$custom-light: #a567c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1fa6",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 280.444,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45501,
    "c": 0.20206,
    "h": 311.2
  },
  "luminance": 0.07871
}

Semantic roles & 50–950 ramp

primary
#7A1FA6
secondary
#7EC55B
accent
#EB3C75
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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