#7C24AB#7C24AB

#7C24AB is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.6% C 0.203 H 310.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7C24AB
RGBrgb(124, 36, 171)
HSLhsl(279, 65%, 41%)
HSVhsv(279, 79%, 67%)
CMYKcmyk(27.5%, 78.9%, 0%, 32.9%)
CIE-LABlab(34.98, 58.01, -54.51)
CIE-LCHlch(34.98, 79.60, 316.79°)
OKLaboklab(46.57% 0.1308 -0.1546)
OKLCHoklch(46.57% 0.203 310.2)
XYZxyz(16.2923, 8.4875, 39.3002)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C24AB #53AB24
analogous
#3824AB #7C24AB #AB2496
triadic
#7C24AB #AB7C24 #24AB7C
tetradic
#7C24AB #AB3824 #53AB24 #2496AB
square
#7C24AB #AB3824 #53AB24 #2496AB
split-complementary
#7C24AB #96AB24 #24AB38
monochromatic
#330F46 #571978 #7C24AB #9E37D5 #B76AE0

Accessibility & contrast

On white

7.79
#7C24AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7C24AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C24AB
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C24AB#FFFFFF#000000##FFFFFF
##7C24AB1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#754667
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c24ab;
/* rgb */ color: rgb(124, 36, 171);
/* oklch */ color: oklch(46.6% 0.203 310.2);
Tailwind
colors: {
  custom: {
    50: '#a76ac5',
    500: '#7c24ab',
    950: '#000000',
  },
}
SCSS
$custom: #7c24ab;
$custom-light: #a76ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c24ab",
  "rgb": {
    "r": 124,
    "g": 36,
    "b": 171
  },
  "hsl": {
    "h": 279.111,
    "s": 65.217,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46569,
    "c": 0.20254,
    "h": 310.2
  },
  "luminance": 0.08487
}

Semantic roles & 50–950 ramp

primary
#7C24AB
secondary
#87C665
accent
#E8407A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C24AB

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

Preview Lab → · Contrast checker → · Palette generator →

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