#7E24AD#7E24AD

#7E24AD is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.205 H 310.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7E24AD
RGBrgb(126, 36, 173)
HSLhsl(279, 66%, 41%)
HSVhsv(279, 79%, 68%)
CMYKcmyk(27.2%, 79.2%, 0%, 32.2%)
CIE-LABlab(35.43, 58.79, -54.96)
CIE-LCHlch(35.43, 80.48, 316.93°)
OKLaboklab(47% 0.1331 -0.1559)
OKLCHoklch(47% 0.205 310.5)
XYZxyz(16.7764, 8.7149, 40.3254)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E24AD #53AD24
analogous
#3924AD #7E24AD #AD2497
triadic
#7E24AD #AD7E24 #24AD7E
tetradic
#7E24AD #AD3924 #53AD24 #2497AD
square
#7E24AD #AD3924 #53AD24 #2497AD
split-complementary
#7E24AD #97AD24 #24AD39
monochromatic
#340F48 #59197A #7E24AD #A039D6 #B86BE0

Accessibility & contrast

On white

7.66
#7E24AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7E24AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E24AD
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E24AD#FFFFFF#000000##FFFFFF
##7E24AD1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B1
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#774669
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e24ad;
/* rgb */ color: rgb(126, 36, 173);
/* oklch */ color: oklch(47.0% 0.205 310.5);
Tailwind
colors: {
  custom: {
    50: '#a86ac6',
    500: '#7e24ad',
    950: '#000000',
  },
}
SCSS
$custom: #7e24ad;
$custom-light: #a86ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e24ad",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 173
  },
  "hsl": {
    "h": 279.416,
    "s": 65.55,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46995,
    "c": 0.20495,
    "h": 310.5
  },
  "luminance": 0.08715
}

Semantic roles & 50–950 ramp

primary
#7E24AD
secondary
#87C666
accent
#E93F79
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E24AD

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

Preview Lab → · Contrast checker → · Palette generator →

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