#7E24A5#7E24A5

#7E24A5 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.4% C 0.198 H 313.0°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7E24A5
RGBrgb(126, 36, 165)
HSLhsl(282, 64%, 39%)
HSVhsv(282, 78%, 65%)
CMYKcmyk(23.6%, 78.2%, 0%, 35.3%)
CIE-LABlab(34.83, 57.12, -51.13)
CIE-LCHlch(34.83, 76.66, 318.17°)
OKLaboklab(46.39% 0.1347 -0.1446)
OKLCHoklch(46.39% 0.198 313)
XYZxyz(16.0254, 8.4145, 36.3700)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E24A5 #4BA524
analogous
#3D24A5 #7E24A5 #A5248C
triadic
#7E24A5 #A57E24 #24A57E
tetradic
#7E24A5 #A53D24 #4BA524 #248CA5
square
#7E24A5 #A53D24 #4BA524 #248CA5
split-complementary
#7E24A5 #8CA524 #24A53D
monochromatic
#310E41 #581973 #7E24A5 #A334D3 #B966DE

Accessibility & contrast

On white

7.83
#7E24A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7E24A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E24A5
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E24A5#FFFFFF#000000##FFFFFF
##7E24A51.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#1254A2
Tritanopia (blue-blind)
#7A4364
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e24a5;
/* rgb */ color: rgb(126, 36, 165);
/* oklch */ color: oklch(46.4% 0.198 313.0);
Tailwind
colors: {
  custom: {
    50: '#a869c0',
    500: '#7e24a5',
    950: '#000000',
  },
}
SCSS
$custom: #7e24a5;
$custom-light: #a869c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e24a5",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 165
  },
  "hsl": {
    "h": 281.86,
    "s": 64.179,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46387,
    "c": 0.19765,
    "h": 313
  },
  "luminance": 0.08414
}

Semantic roles & 50–950 ramp

primary
#7E24A5
secondary
#7FC362
accent
#E74173
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E24A5

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

Preview Lab → · Contrast checker → · Palette generator →

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