#7E24A7#7E24A7

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

Color values

HEX#7E24A7
RGBrgb(126, 36, 167)
HSLhsl(281, 65%, 40%)
HSVhsv(281, 78%, 65%)
CMYKcmyk(24.6%, 78.4%, 0%, 34.5%)
CIE-LABlab(34.98, 57.54, -52.09)
CIE-LCHlch(34.98, 77.61, 317.84°)
OKLaboklab(46.54% 0.1343 -0.1475)
OKLCHoklch(46.54% 0.199 312.3)
XYZxyz(16.2088, 8.4879, 37.3362)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E24A7 #4DA724
analogous
#3C24A7 #7E24A7 #A7248F
triadic
#7E24A7 #A77E24 #24A77E
tetradic
#7E24A7 #A73C24 #4DA724 #248FA7
square
#7E24A7 #A73C24 #4DA724 #248FA7
split-complementary
#7E24A7 #8FA724 #24A73C
monochromatic
#320E42 #581975 #7E24A7 #A235D3 #B967DE

Accessibility & contrast

On white

7.79
#7E24A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7E24A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E24A7
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E24A7#FFFFFF#000000##FFFFFF
##7E24A71.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#0C54A4
Tritanopia (blue-blind)
#794465
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e24a7;
/* rgb */ color: rgb(126, 36, 167);
/* oklch */ color: oklch(46.5% 0.199 312.3);
Tailwind
colors: {
  custom: {
    50: '#a86ac2',
    500: '#7e24a7',
    950: '#000000',
  },
}
SCSS
$custom: #7e24a7;
$custom-light: #a86ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e24a7",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 167
  },
  "hsl": {
    "h": 281.221,
    "s": 64.532,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46537,
    "c": 0.19947,
    "h": 312.3
  },
  "luminance": 0.08487
}

Semantic roles & 50–950 ramp

primary
#7E24A7
secondary
#81C463
accent
#E84075
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E24A7

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

Preview Lab → · Contrast checker → · Palette generator →

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