#7A1FA7#7A1FA7

#7A1FA7 is a mid, highly saturated purple. Relative luminance 0.079; OKLCH L 45.6% C 0.203 H 310.9°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7A1FA7
RGBrgb(122, 31, 167)
HSLhsl(280, 69%, 39%)
HSVhsv(280, 81%, 65%)
CMYKcmyk(26.9%, 81.4%, 0%, 34.5%)
CIE-LABlab(33.79, 58.50, -54.05)
CIE-LCHlch(33.79, 79.64, 317.26°)
OKLaboklab(45.58% 0.133 -0.1533)
OKLCHoklch(45.58% 0.203 310.9)
XYZxyz(15.4897, 7.9080, 37.2621)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1FA7 #4CA71F
analogous
#361FA7 #7A1FA7 #A71F90
triadic
#7A1FA7 #A77A1F #1FA77A
tetradic
#7A1FA7 #A7361F #4CA71F #1F90A7
square
#7A1FA7 #A7361F #4CA71F #1F90A7
split-complementary
#7A1FA7 #90A71F #1FA736
monochromatic
#2F0C40 #541573 #7A1FA7 #9F2BD8 #B65FE1

Accessibility & contrast

On white

8.13
#7A1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7A1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1FA7
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1FA7#FFFFFF#000000##FFFFFF
##7A1FA71.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a1fa7;
/* rgb */ color: rgb(122, 31, 167);
/* oklch */ color: oklch(45.6% 0.203 310.9);
Tailwind
colors: {
  custom: {
    50: '#a567c2',
    500: '#7a1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #7a1fa7;
$custom-light: #a567c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1fa7",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 280.147,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4558,
    "c": 0.20296,
    "h": 310.9
  },
  "luminance": 0.07908
}

Semantic roles & 50–950 ramp

primary
#7A1FA7
secondary
#7FC65C
accent
#EC3C76
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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