#7A26AB#7A26AB

#7A26AB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.5% C 0.200 H 309.2°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7A26AB
RGBrgb(122, 38, 171)
HSLhsl(278, 64%, 41%)
HSVhsv(278, 78%, 67%)
CMYKcmyk(28.7%, 77.8%, 0%, 32.9%)
CIE-LABlab(34.93, 56.94, -54.59)
CIE-LCHlch(34.93, 78.88, 316.20°)
OKLaboklab(46.48% 0.1264 -0.155)
OKLCHoklch(46.48% 0.2 309.2)
XYZxyz(16.0683, 8.4644, 39.3075)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A26AB #57AB26
analogous
#3826AB #7A26AB #AB2699
triadic
#7A26AB #AB7A26 #26AB7A
tetradic
#7A26AB #AB3826 #57AB26 #2699AB
square
#7A26AB #AB3826 #57AB26 #2699AB
split-complementary
#7A26AB #99AB26 #26AB38
monochromatic
#331047 #561B79 #7A26AB #9B3BD3 #B56DDF

Accessibility & contrast

On white

7.80
#7A26AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7A26AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A26AB
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A26AB#FFFFFF#000000##FFFFFF
##7A26AB1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#734768
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a26ab;
/* rgb */ color: rgb(122, 38, 171);
/* oklch */ color: oklch(46.5% 0.200 309.2);
Tailwind
colors: {
  custom: {
    50: '#a56ac5',
    500: '#7a26ab',
    950: '#000000',
  },
}
SCSS
$custom: #7a26ab;
$custom-light: #a56ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a26ab",
  "rgb": {
    "r": 122,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 277.895,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46476,
    "c": 0.19998,
    "h": 309.2
  },
  "luminance": 0.08464
}

Semantic roles & 50–950 ramp

primary
#7A26AB
secondary
#8AC568
accent
#E7417E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A26AB

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

Preview Lab → · Contrast checker → · Palette generator →

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