#7E24A2#7E24A2

#7E24A2 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.195 H 313.9°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7E24A2
RGBrgb(126, 36, 162)
HSLhsl(283, 64%, 39%)
HSVhsv(283, 78%, 64%)
CMYKcmyk(22.2%, 77.8%, 0%, 36.5%)
CIE-LABlab(34.61, 56.50, -49.67)
CIE-LCHlch(34.61, 75.23, 318.68°)
OKLaboklab(46.16% 0.1353 -0.1404)
OKLCHoklch(46.16% 0.195 313.9)
XYZxyz(15.7555, 8.3065, 34.9488)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E24A2 #48A224
analogous
#3F24A2 #7E24A2 #A22487
triadic
#7E24A2 #A27E24 #24A27E
tetradic
#7E24A2 #A23F24 #48A224 #2487A2
square
#7E24A2 #A23F24 #48A224 #2487A2
split-complementary
#7E24A2 #87A224 #24A23F
monochromatic
#300E3E #571970 #7E24A2 #A432D1 #BA64DD

Accessibility & contrast

On white

7.89
#7E24A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7E24A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E24A2
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E24A2#FFFFFF#000000##FFFFFF
##7E24A21.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#19539F
Tritanopia (blue-blind)
#7A4162
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e24a2;
/* rgb */ color: rgb(126, 36, 162);
/* oklch */ color: oklch(46.2% 0.195 313.9);
Tailwind
colors: {
  custom: {
    50: '#a869be',
    500: '#7e24a2',
    950: '#000000',
  },
}
SCSS
$custom: #7e24a2;
$custom-light: #a869be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e24a2",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 162
  },
  "hsl": {
    "h": 282.857,
    "s": 63.636,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46164,
    "c": 0.19492,
    "h": 313.9
  },
  "luminance": 0.08306
}

Semantic roles & 50–950 ramp

primary
#7E24A2
secondary
#7CC260
accent
#E74170
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E24A2

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

Preview Lab → · Contrast checker → · Palette generator →

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