#7A26A2#7A26A2

#7A26A2 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.192 H 312.0°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#7A26A2
RGBrgb(122, 38, 162)
HSLhsl(281, 62%, 39%)
HSVhsv(281, 77%, 64%)
CMYKcmyk(24.7%, 76.5%, 0%, 36.5%)
CIE-LABlab(34.26, 55.00, -50.28)
CIE-LCHlch(34.26, 74.52, 317.57°)
OKLaboklab(45.79% 0.1282 -0.1423)
OKLCHoklch(45.79% 0.192 312)
XYZxyz(15.2395, 8.1329, 34.9424)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A26A2 #4EA226
analogous
#3C26A2 #7A26A2 #A2268C
triadic
#7A26A2 #A27A26 #26A27A
tetradic
#7A26A2 #A23C26 #4EA226 #268CA2
square
#7A26A2 #A23C26 #4EA226 #268CA2
split-complementary
#7A26A2 #8CA226 #26A23C
monochromatic
#2F0F3F #551A70 #7A26A2 #9E35D0 #B667DB

Accessibility & contrast

On white

8.00
#7A26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A26A2
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A26A2#FFFFFF#000000##FFFFFF
##7A26A21.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#11529F
Tritanopia (blue-blind)
#754363
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a26a2;
/* rgb */ color: rgb(122, 38, 162);
/* oklch */ color: oklch(45.8% 0.192 312.0);
Tailwind
colors: {
  custom: {
    50: '#a56abe',
    500: '#7a26a2',
    950: '#000000',
  },
}
SCSS
$custom: #7a26a2;
$custom-light: #a56abe;
$custom-dark: #000000;
JSON
{
  "hex": "#7a26a2",
  "rgb": {
    "r": 122,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 280.645,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4579,
    "c": 0.1915,
    "h": 312
  },
  "luminance": 0.08132
}

Semantic roles & 50–950 ramp

primary
#7A26A2
secondary
#81C163
accent
#E54377
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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