#4D24A6#4D24A6

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

Color values

HEX#4D24A6
RGBrgb(77, 36, 166)
HSLhsl(259, 64%, 40%)
HSVhsv(259, 78%, 65%)
CMYKcmyk(53.6%, 78.3%, 0%, 34.9%)
CIE-LABlab(28.36, 49.26, -62.57)
CIE-LCHlch(28.36, 79.63, 308.21°)
OKLaboklab(40.47% 0.0629 -0.1799)
OKLCHoklch(40.47% 0.191 289.3)
XYZxyz(10.5724, 5.5922, 36.5913)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D24A6 #7DA624
analogous
#243CA6 #4D24A6 #8E24A6
triadic
#4D24A6 #A64D24 #24A64D
tetradic
#4D24A6 #A6243C #7DA624 #24A68E
square
#4D24A6 #A6243C #7DA624 #24A68E
split-complementary
#4D24A6 #A68E24 #3CA624
monochromatic
#1E0E41 #361974 #4D24A6 #6634D3 #8C66DE

Accessibility & contrast

On white

9.91
#4D24A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4D24A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D24A6
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D24A6#FFFFFF#000000##FFFFFF
##4D24A61.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#2A4964
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d24a6;
/* rgb */ color: rgb(77, 36, 166);
/* oklch */ color: oklch(40.5% 0.191 289.3);
Tailwind
colors: {
  custom: {
    50: '#8964c2',
    500: '#4d24a6',
    950: '#000000',
  },
}
SCSS
$custom: #4d24a6;
$custom-light: #8964c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d24a6",
  "rgb": {
    "r": 77,
    "g": 36,
    "b": 166
  },
  "hsl": {
    "h": 258.923,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40469,
    "c": 0.19058,
    "h": 289.3
  },
  "luminance": 0.05593
}

Semantic roles & 50–950 ramp

primary
#4D24A6
secondary
#A5C462
accent
#E740B3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4D24A6

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

Preview Lab → · Contrast checker → · Palette generator →

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