#7A26A7#7A26A7

#7A26A7 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.2% C 0.196 H 310.4°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7A26A7
RGBrgb(122, 38, 167)
HSLhsl(279, 63%, 40%)
HSVhsv(279, 77%, 65%)
CMYKcmyk(26.9%, 77.2%, 0%, 34.5%)
CIE-LABlab(34.63, 56.07, -52.69)
CIE-LCHlch(34.63, 76.94, 316.78°)
OKLaboklab(46.17% 0.1272 -0.1494)
OKLCHoklch(46.17% 0.196 310.4)
XYZxyz(15.6928, 8.3142, 37.3298)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A26A7 #53A726
analogous
#3A26A7 #7A26A7 #A72693
triadic
#7A26A7 #A77A26 #26A77A
tetradic
#7A26A7 #A73A26 #53A726 #2693A7
square
#7A26A7 #A73A26 #53A726 #2693A7
split-complementary
#7A26A7 #93A726 #26A73A
monochromatic
#310F43 #561B75 #7A26A7 #9C38D2 #B56ADD

Accessibility & contrast

On white

7.89
#7A26A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7A26A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A26A7
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A26A7#FFFFFF#000000##FFFFFF
##7A26A71.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#0053A4
Tritanopia (blue-blind)
#744566
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a26a7;
/* rgb */ color: rgb(122, 38, 167);
/* oklch */ color: oklch(46.2% 0.196 310.4);
Tailwind
colors: {
  custom: {
    50: '#a56ac2',
    500: '#7a26a7',
    950: '#000000',
  },
}
SCSS
$custom: #7a26a7;
$custom-light: #a56ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a26a7",
  "rgb": {
    "r": 122,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 279.07,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46168,
    "c": 0.19621,
    "h": 310.4
  },
  "luminance": 0.08314
}

Semantic roles & 50–950 ramp

primary
#7A26A7
secondary
#86C365
accent
#E6427B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A26A7

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

Preview Lab → · Contrast checker → · Palette generator →

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