#7E26A2#7E26A2

#7E26A2 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.193 H 313.8°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#7E26A2
RGBrgb(126, 38, 162)
HSLhsl(283, 62%, 39%)
HSVhsv(283, 77%, 64%)
CMYKcmyk(22.2%, 76.5%, 0%, 36.5%)
CIE-LABlab(34.86, 55.78, -49.27)
CIE-LCHlch(34.86, 74.42, 318.55°)
OKLaboklab(46.34% 0.1335 -0.1392)
OKLCHoklch(46.34% 0.193 313.8)
XYZxyz(15.8178, 8.4310, 34.9695)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E26A2 #4AA226
analogous
#4026A2 #7E26A2 #A22688
triadic
#7E26A2 #A27E26 #26A27E
tetradic
#7E26A2 #A24026 #4AA226 #2688A2
square
#7E26A2 #A24026 #4AA226 #2688A2
split-complementary
#7E26A2 #88A226 #26A240
monochromatic
#310F3F #571A70 #7E26A2 #A335D0 #BA67DB

Accessibility & contrast

On white

7.82
#7E26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E26A2
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E26A2#FFFFFF#000000##FFFFFF
##7E26A21.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#1B549F
Tritanopia (blue-blind)
#7A4263
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e26a2;
/* rgb */ color: rgb(126, 38, 162);
/* oklch */ color: oklch(46.3% 0.193 313.8);
Tailwind
colors: {
  custom: {
    50: '#a86abe',
    500: '#7e26a2',
    950: '#000000',
  },
}
SCSS
$custom: #7e26a2;
$custom-light: #a86abe;
$custom-dark: #000000;
JSON
{
  "hex": "#7e26a2",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 282.581,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46342,
    "c": 0.19283,
    "h": 313.8
  },
  "luminance": 0.0843
}

Semantic roles & 50–950 ramp

primary
#7E26A2
secondary
#7EC163
accent
#E54372
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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