#7A1FAD#7A1FAD

#7A1FAD is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.1% C 0.208 H 309.1°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7A1FAD
RGBrgb(122, 31, 173)
HSLhsl(278, 70%, 40%)
HSVhsv(278, 82%, 68%)
CMYKcmyk(29.5%, 82.1%, 0%, 32.2%)
CIE-LABlab(34.26, 59.76, -56.88)
CIE-LCHlch(34.26, 82.50, 316.41°)
OKLaboklab(46.06% 0.1315 -0.1616)
OKLCHoklch(46.06% 0.208 309.1)
XYZxyz(16.0573, 8.1350, 40.2514)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1FAD #52AD1F
analogous
#331FAD #7A1FAD #AD1F99
triadic
#7A1FAD #AD7A1F #1FAD7A
tetradic
#7A1FAD #AD331F #52AD1F #1F99AD
square
#7A1FAD #AD331F #52AD1F #1F99AD
split-complementary
#7A1FAD #99AD1F #1FAD33
monochromatic
#310C45 #551679 #7A1FAD #9D2FDA #B563E3

Accessibility & contrast

On white

7.99
#7A1FAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7A1FAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1FAD
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1FAD#FFFFFF#000000##FFFFFF
##7A1FAD1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB1
Deuteranopia (green-blind)
#0052AA
Tritanopia (blue-blind)
#724568
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a1fad;
/* rgb */ color: rgb(122, 31, 173);
/* oklch */ color: oklch(46.1% 0.208 309.1);
Tailwind
colors: {
  custom: {
    50: '#a667c6',
    500: '#7a1fad',
    950: '#000000',
  },
}
SCSS
$custom: #7a1fad;
$custom-light: #a667c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1fad",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 173
  },
  "hsl": {
    "h": 278.451,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.46056,
    "c": 0.20836,
    "h": 309.1
  },
  "luminance": 0.08135
}

Semantic roles & 50–950 ramp

primary
#7A1FAD
secondary
#85C860
accent
#EC3B7B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A1FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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