#7E26A3#7E26A3

#7E26A3 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.194 H 313.5°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7E26A3
RGBrgb(126, 38, 163)
HSLhsl(282, 62%, 39%)
HSVhsv(282, 77%, 64%)
CMYKcmyk(22.7%, 76.7%, 0%, 36.1%)
CIE-LABlab(34.94, 55.99, -49.75)
CIE-LCHlch(34.94, 74.90, 318.37°)
OKLaboklab(46.42% 0.1333 -0.1406)
OKLCHoklch(46.42% 0.194 313.5)
XYZxyz(15.9070, 8.4667, 35.4395)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E26A3 #4BA326
analogous
#4026A3 #7E26A3 #A3268A
triadic
#7E26A3 #A37E26 #26A37E
tetradic
#7E26A3 #A34026 #4BA326 #268AA3
square
#7E26A3 #A34026 #4BA326 #268AA3
split-complementary
#7E26A3 #8AA326 #26A340
monochromatic
#310F40 #581A71 #7E26A3 #A336D0 #B968DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E26A3#FFFFFF#000000##FFFFFF
##7E26A31.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)
#004EA6
Deuteranopia (green-blind)
#1954A0
Tritanopia (blue-blind)
#7A4363
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e26a3;
/* rgb */ color: rgb(126, 38, 163);
/* oklch */ color: oklch(46.4% 0.194 313.5);
Tailwind
colors: {
  custom: {
    50: '#a86abf',
    500: '#7e26a3',
    950: '#000000',
  },
}
SCSS
$custom: #7e26a3;
$custom-light: #a86abf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e26a3",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 163
  },
  "hsl": {
    "h": 282.24,
    "s": 62.189,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46415,
    "c": 0.19375,
    "h": 313.5
  },
  "luminance": 0.08466
}

Semantic roles & 50–950 ramp

primary
#7E26A3
secondary
#7FC263
accent
#E54373
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E26A3

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

Preview Lab → · Contrast checker → · Palette generator →

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