#7A1FA8#7A1FA8

#7A1FA8 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.7% C 0.204 H 310.6°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#7A1FA8
RGBrgb(122, 31, 168)
HSLhsl(280, 69%, 39%)
HSVhsv(280, 82%, 66%)
CMYKcmyk(27.4%, 81.5%, 0%, 34.1%)
CIE-LABlab(33.87, 58.71, -54.52)
CIE-LCHlch(33.87, 80.12, 317.12°)
OKLaboklab(45.66% 0.1328 -0.1547)
OKLCHoklch(45.66% 0.204 310.6)
XYZxyz(15.5825, 7.9451, 37.7509)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1FA8 #4DA81F
analogous
#361FA8 #7A1FA8 #A81F92
triadic
#7A1FA8 #A87A1F #1FA87A
tetradic
#7A1FA8 #A8361F #4DA81F #1F92A8
square
#7A1FA8 #A8361F #4DA81F #1F92A8
split-complementary
#7A1FA8 #92A81F #1FA836
monochromatic
#2F0C41 #541574 #7A1FA8 #9E2CD8 #B660E2

Accessibility & contrast

On white

8.11
#7A1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7A1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1FA8
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1FA8#FFFFFF#000000##FFFFFF
##7A1FA81.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0051A5
Tritanopia (blue-blind)
#744265
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a1fa8;
/* rgb */ color: rgb(122, 31, 168);
/* oklch */ color: oklch(45.7% 0.204 310.6);
Tailwind
colors: {
  custom: {
    50: '#a667c3',
    500: '#7a1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #7a1fa8;
$custom-light: #a667c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1fa8",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 279.854,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45658,
    "c": 0.20386,
    "h": 310.6
  },
  "luminance": 0.07945
}

Semantic roles & 50–950 ramp

primary
#7A1FA8
secondary
#80C65D
accent
#EC3C77
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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