#7C24A5#7C24A5

#7C24A5 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.197 H 312.1°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7C24A5
RGBrgb(124, 36, 165)
HSLhsl(281, 64%, 39%)
HSVhsv(281, 78%, 65%)
CMYKcmyk(24.8%, 78.2%, 0%, 35.3%)
CIE-LABlab(34.53, 56.75, -51.64)
CIE-LCHlch(34.53, 76.72, 317.70°)
OKLaboklab(46.11% 0.1321 -0.1462)
OKLCHoklch(46.11% 0.197 312.1)
XYZxyz(15.7333, 8.2639, 36.3563)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C24A5 #4DA524
analogous
#3B24A5 #7C24A5 #A5248E
triadic
#7C24A5 #A57C24 #24A57C
tetradic
#7C24A5 #A53B24 #4DA524 #248EA5
square
#7C24A5 #A53B24 #4DA524 #248EA5
split-complementary
#7C24A5 #8EA524 #24A53B
monochromatic
#300E41 #561973 #7C24A5 #A034D3 #B866DE

Accessibility & contrast

On white

7.92
#7C24A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7C24A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C24A5
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C24A5#FFFFFF#000000##FFFFFF
##7C24A51.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0B53A2
Tritanopia (blue-blind)
#774364
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c24a5;
/* rgb */ color: rgb(124, 36, 165);
/* oklch */ color: oklch(46.1% 0.197 312.1);
Tailwind
colors: {
  custom: {
    50: '#a669c0',
    500: '#7c24a5',
    950: '#000000',
  },
}
SCSS
$custom: #7c24a5;
$custom-light: #a669c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c24a5",
  "rgb": {
    "r": 124,
    "g": 36,
    "b": 165
  },
  "hsl": {
    "h": 280.93,
    "s": 64.179,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4611,
    "c": 0.19701,
    "h": 312.1
  },
  "luminance": 0.08263
}

Semantic roles & 50–950 ramp

primary
#7C24A5
secondary
#81C362
accent
#E74176
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C24A5

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

Preview Lab → · Contrast checker → · Palette generator →

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