#7A26C5#7A26C5

#7A26C5 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.6% C 0.225 H 302.2°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7A26C5
RGBrgb(122, 38, 197)
HSLhsl(272, 68%, 46%)
HSVhsv(272, 81%, 77%)
CMYKcmyk(38.1%, 80.7%, 0%, 22.7%)
CIE-LABlab(37.03, 62.71, -66.55)
CIE-LCHlch(37.03, 91.44, 313.30°)
OKLaboklab(48.59% 0.1197 -0.1901)
OKLCHoklch(48.59% 0.225 302.2)
XYZxyz(18.7948, 9.5549, 53.6666)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A26C5 #71C526
analogous
#2A26C5 #7A26C5 #C526C0
triadic
#7A26C5 #C57A26 #26C57A
tetradic
#7A26C5 #C52A26 #71C526 #26C0C5
square
#7A26C5 #C52A26 #71C526 #26C0C5
split-complementary
#7A26C5 #C0C526 #26C52A
monochromatic
#3A125E #5A1C92 #7A26C5 #984CDC #B67FE6

Accessibility & contrast

On white

7.21
#7A26C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7A26C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A26C5
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A26C5#FFFFFF#000000##FFFFFF
##7A26C51.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#0056C2
Tritanopia (blue-blind)
#6A5277
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a26c5;
/* rgb */ color: rgb(122, 38, 197);
/* oklch */ color: oklch(48.6% 0.225 302.2);
Tailwind
colors: {
  custom: {
    50: '#a86cd8',
    500: '#7a26c5',
    950: '#000000',
  },
}
SCSS
$custom: #7a26c5;
$custom-light: #a86cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a26c5",
  "rgb": {
    "r": 122,
    "g": 38,
    "b": 197
  },
  "hsl": {
    "h": 271.698,
    "s": 67.66,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48594,
    "c": 0.22462,
    "h": 302.2
  },
  "luminance": 0.09555
}

Semantic roles & 50–950 ramp

primary
#7A26C5
secondary
#A1CF78
accent
#EB3D8F
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#110715
muted
#807A83

Preview Lab

Preview with #7A26C5

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

Preview Lab → · Contrast checker → · Palette generator →

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