#7E24A3#7E24A3

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

Color values

HEX#7E24A3
RGBrgb(126, 36, 163)
HSLhsl(283, 64%, 39%)
HSVhsv(283, 78%, 64%)
CMYKcmyk(22.7%, 77.9%, 0%, 36.1%)
CIE-LABlab(34.69, 56.71, -50.16)
CIE-LCHlch(34.69, 75.71, 318.51°)
OKLaboklab(46.24% 0.1351 -0.1418)
OKLCHoklch(46.24% 0.196 313.6)
XYZxyz(15.8448, 8.3422, 35.4188)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E24A3 #49A324
analogous
#3F24A3 #7E24A3 #A32489
triadic
#7E24A3 #A37E24 #24A37E
tetradic
#7E24A3 #A33F24 #49A324 #2489A3
square
#7E24A3 #A33F24 #49A324 #2489A3
split-complementary
#7E24A3 #89A324 #24A33F
monochromatic
#310E3F #571971 #7E24A3 #A332D2 #BA65DD

Accessibility & contrast

On white

7.87
#7E24A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E24A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E24A3
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E24A3#FFFFFF#000000##FFFFFF
##7E24A31.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA6
Deuteranopia (green-blind)
#1754A0
Tritanopia (blue-blind)
#7A4263
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e24a3;
/* rgb */ color: rgb(126, 36, 163);
/* oklch */ color: oklch(46.2% 0.196 313.6);
Tailwind
colors: {
  custom: {
    50: '#a869bf',
    500: '#7e24a3',
    950: '#000000',
  },
}
SCSS
$custom: #7e24a3;
$custom-light: #a869bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e24a3",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 163
  },
  "hsl": {
    "h": 282.52,
    "s": 63.819,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46238,
    "c": 0.19582,
    "h": 313.6
  },
  "luminance": 0.08342
}

Semantic roles & 50–950 ramp

primary
#7E24A3
secondary
#7DC260
accent
#E74171
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E24A3

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

Preview Lab → · Contrast checker → · Palette generator →

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