#7E24A9#7E24A9

#7E24A9 is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.7% C 0.201 H 311.7°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7E24A9
RGBrgb(126, 36, 169)
HSLhsl(281, 65%, 40%)
HSVhsv(281, 79%, 66%)
CMYKcmyk(25.4%, 78.7%, 0%, 33.7%)
CIE-LABlab(35.13, 57.95, -53.05)
CIE-LCHlch(35.13, 78.57, 317.53°)
OKLaboklab(46.69% 0.1339 -0.1503)
OKLCHoklch(46.69% 0.201 311.7)
XYZxyz(16.3951, 8.5624, 38.3175)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E24A9 #4FA924
analogous
#3C24A9 #7E24A9 #A92491
triadic
#7E24A9 #A97E24 #24A97E
tetradic
#7E24A9 #A93C24 #4FA924 #2491A9
square
#7E24A9 #A93C24 #4FA924 #2491A9
split-complementary
#7E24A9 #91A924 #24A93C
monochromatic
#330F44 #581977 #7E24A9 #A136D4 #B968DF

Accessibility & contrast

On white

7.74
#7E24A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E24A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E24A9
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E24A9#FFFFFF#000000##FFFFFF
##7E24A91.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAD
Deuteranopia (green-blind)
#0554A6
Tritanopia (blue-blind)
#794466
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e24a9;
/* rgb */ color: rgb(126, 36, 169);
/* oklch */ color: oklch(46.7% 0.201 311.7);
Tailwind
colors: {
  custom: {
    50: '#a86ac3',
    500: '#7e24a9',
    950: '#000000',
  },
}
SCSS
$custom: #7e24a9;
$custom-light: #a86ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e24a9",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 169
  },
  "hsl": {
    "h": 280.602,
    "s": 64.878,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46688,
    "c": 0.20129,
    "h": 311.7
  },
  "luminance": 0.08562
}

Semantic roles & 50–950 ramp

primary
#7E24A9
secondary
#83C564
accent
#E84076
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E24A9

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

Preview Lab → · Contrast checker → · Palette generator →

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