#4C1885#4C1885

#4C1885 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.166 H 299.2°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#4C1885
RGBrgb(76, 24, 133)
HSLhsl(269, 69%, 31%)
HSVhsv(269, 82%, 52%)
CMYKcmyk(42.9%, 82%, 0%, 47.8%)
CIE-LABlab(23.28, 45.52, -50.58)
CIE-LCHlch(23.28, 68.05, 311.99°)
OKLaboklab(35.95% 0.0808 -0.1447)
OKLCHoklch(35.95% 0.166 299.2)
XYZxyz(7.5397, 3.8831, 22.5380)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1885 #518518
analogous
#181A85 #4C1885 #821885
triadic
#4C1885 #854C18 #18854C
tetradic
#4C1885 #85181A #518518 #188582
square
#4C1885 #85181A #518518 #188582
split-complementary
#4C1885 #858218 #1A8518
monochromatic
#11051D #2E0F51 #4C1885 #6A21B9 #883CDC

Accessibility & contrast

On white

11.82
#4C1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4C1885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1885
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1885#FFFFFF#000000##FFFFFF
##4C18851.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003683
Tritanopia (blue-blind)
#3E364F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1885;
/* rgb */ color: rgb(76, 24, 133);
/* oklch */ color: oklch(35.9% 0.166 299.2);
Tailwind
colors: {
  custom: {
    50: '#845ca9',
    500: '#4c1885',
    950: '#000000',
  },
}
SCSS
$custom: #4c1885;
$custom-light: #845ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1885",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 268.624,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35946,
    "c": 0.16577,
    "h": 299.2
  },
  "luminance": 0.03883
}

Semantic roles & 50–950 ramp

primary
#4C1885
secondary
#7FB940
accent
#EC3C98
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1885

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

Preview Lab → · Contrast checker → · Palette generator →

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