#7E24A6#7E24A6

#7E24A6 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.5% C 0.199 H 312.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7E24A6
RGBrgb(126, 36, 166)
HSLhsl(282, 64%, 40%)
HSVhsv(282, 78%, 65%)
CMYKcmyk(24.1%, 78.3%, 0%, 34.9%)
CIE-LABlab(34.91, 57.33, -51.61)
CIE-LCHlch(34.91, 77.14, 318.00°)
OKLaboklab(46.46% 0.1345 -0.1461)
OKLCHoklch(46.46% 0.199 312.6)
XYZxyz(16.1167, 8.4510, 36.8512)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E24A6 #4CA624
analogous
#3D24A6 #7E24A6 #A6248D
triadic
#7E24A6 #A67E24 #24A67E
tetradic
#7E24A6 #A63D24 #4CA624 #248DA6
square
#7E24A6 #A63D24 #4CA624 #248DA6
split-complementary
#7E24A6 #8DA624 #24A63D
monochromatic
#320E41 #581974 #7E24A6 #A234D3 #B966DE

Accessibility & contrast

On white

7.81
#7E24A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E24A6
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E24A6#FFFFFF#000000##FFFFFF
##7E24A61.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#0F54A3
Tritanopia (blue-blind)
#794365
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e24a6;
/* rgb */ color: rgb(126, 36, 166);
/* oklch */ color: oklch(46.5% 0.199 312.6);
Tailwind
colors: {
  custom: {
    50: '#a86ac1',
    500: '#7e24a6',
    950: '#000000',
  },
}
SCSS
$custom: #7e24a6;
$custom-light: #a86ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e24a6",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 166
  },
  "hsl": {
    "h": 281.538,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46462,
    "c": 0.19856,
    "h": 312.6
  },
  "luminance": 0.08451
}

Semantic roles & 50–950 ramp

primary
#7E24A6
secondary
#80C462
accent
#E74074
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E24A6

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

Preview Lab → · Contrast checker → · Palette generator →

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