#7A26B6#7A26B6

#7A26B6 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.3% C 0.210 H 306.1°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7A26B6
RGBrgb(122, 38, 182)
HSLhsl(275, 65%, 43%)
HSVhsv(275, 79%, 71%)
CMYKcmyk(33%, 79.1%, 0%, 28.6%)
CIE-LABlab(35.79, 59.35, -59.74)
CIE-LCHlch(35.79, 84.21, 314.81°)
OKLaboklab(47.35% 0.1238 -0.1701)
OKLCHoklch(47.35% 0.21 306.1)
XYZxyz(17.1608, 8.9014, 45.0610)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A26B6 #62B626
analogous
#3226B6 #7A26B6 #B626AA
triadic
#7A26B6 #B67A26 #26B67A
tetradic
#7A26B6 #B63226 #62B626 #26AAB6
square
#7A26B6 #B63226 #62B626 #26AAB6
split-complementary
#7A26B6 #AAB626 #26B632
monochromatic
#361151 #581B83 #7A26B6 #9942D7 #B474E2

Accessibility & contrast

On white

7.55
#7A26B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7A26B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A26B6
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A26B6#FFFFFF#000000##FFFFFF
##7A26B61.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#0054B3
Tritanopia (blue-blind)
#6F4C6E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a26b6;
/* rgb */ color: rgb(122, 38, 182);
/* oklch */ color: oklch(47.3% 0.210 306.1);
Tailwind
colors: {
  custom: {
    50: '#a66bcd',
    500: '#7a26b6',
    950: '#000000',
  },
}
SCSS
$custom: #7a26b6;
$custom-light: #a66bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a26b6",
  "rgb": {
    "r": 122,
    "g": 38,
    "b": 182
  },
  "hsl": {
    "h": 275,
    "s": 65.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47349,
    "c": 0.21039,
    "h": 306.1
  },
  "luminance": 0.08901
}

Semantic roles & 50–950 ramp

primary
#7A26B6
secondary
#94C96E
accent
#E83F86
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A26B6

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

Preview Lab → · Contrast checker → · Palette generator →

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