#4C24A6#4C24A6

#4C24A6 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.191 H 288.8°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#4C24A6
RGBrgb(76, 36, 166)
HSLhsl(258, 64%, 40%)
HSVhsv(258, 78%, 65%)
CMYKcmyk(54.2%, 78.3%, 0%, 34.9%)
CIE-LABlab(28.25, 49.12, -62.75)
CIE-LCHlch(28.25, 79.69, 308.05°)
OKLaboklab(40.37% 0.0613 -0.1805)
OKLCHoklch(40.37% 0.191 288.8)
XYZxyz(10.4923, 5.5509, 36.5876)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C24A6 #7EA624
analogous
#243DA6 #4C24A6 #8D24A6
triadic
#4C24A6 #A64C24 #24A64C
tetradic
#4C24A6 #A6243D #7EA624 #24A68D
square
#4C24A6 #A6243D #7EA624 #24A68D
split-complementary
#4C24A6 #A68D24 #3DA624
monochromatic
#1E0E41 #351974 #4C24A6 #6534D3 #8B66DE

Accessibility & contrast

On white

9.95
#4C24A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4C24A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C24A6
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C24A6#FFFFFF#000000##FFFFFF
##4C24A61.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#284964
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c24a6;
/* rgb */ color: rgb(76, 36, 166);
/* oklch */ color: oklch(40.4% 0.191 288.8);
Tailwind
colors: {
  custom: {
    50: '#8864c2',
    500: '#4c24a6',
    950: '#000000',
  },
}
SCSS
$custom: #4c24a6;
$custom-light: #8864c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c24a6",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 166
  },
  "hsl": {
    "h": 258.462,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40367,
    "c": 0.19062,
    "h": 288.8
  },
  "luminance": 0.05551
}

Semantic roles & 50–950 ramp

primary
#4C24A6
secondary
#A6C462
accent
#E740B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4C24A6

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

Preview Lab → · Contrast checker → · Palette generator →

#4C24A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva