#7A1FAC#7A1FAC

#7A1FAC is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.0% C 0.207 H 309.4°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7A1FAC
RGBrgb(122, 31, 172)
HSLhsl(279, 69%, 40%)
HSVhsv(279, 82%, 67%)
CMYKcmyk(29.1%, 82%, 0%, 32.5%)
CIE-LABlab(34.18, 59.55, -56.41)
CIE-LCHlch(34.18, 82.02, 316.55°)
OKLaboklab(45.98% 0.1317 -0.1603)
OKLCHoklch(45.98% 0.207 309.4)
XYZxyz(15.9609, 8.0964, 39.7437)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1FAC #51AC1F
analogous
#331FAC #7A1FAC #AC1F98
triadic
#7A1FAC #AC7A1F #1FAC7A
tetradic
#7A1FAC #AC331F #51AC1F #1F98AC
square
#7A1FAC #AC331F #51AC1F #1F98AC
split-complementary
#7A1FAC #98AC1F #1FAC33
monochromatic
#300C44 #551678 #7A1FAC #9D2FD9 #B563E3

Accessibility & contrast

On white

8.02
#7A1FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7A1FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1FAC
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1FAC#FFFFFF#000000##FFFFFF
##7A1FAC1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#724467
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a1fac;
/* rgb */ color: rgb(122, 31, 172);
/* oklch */ color: oklch(46.0% 0.207 309.4);
Tailwind
colors: {
  custom: {
    50: '#a667c6',
    500: '#7a1fac',
    950: '#000000',
  },
}
SCSS
$custom: #7a1fac;
$custom-light: #a667c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1fac",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 172
  },
  "hsl": {
    "h": 278.723,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45976,
    "c": 0.20746,
    "h": 309.4
  },
  "luminance": 0.08096
}

Semantic roles & 50–950 ramp

primary
#7A1FAC
secondary
#84C85F
accent
#EC3C7A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A1FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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