#4C1E8A#4C1E8A

#4C1E8A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.165 H 296.7°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#4C1E8A
RGBrgb(76, 30, 138)
HSLhsl(266, 64%, 33%)
HSVhsv(266, 78%, 54%)
CMYKcmyk(44.9%, 78.3%, 0%, 45.9%)
CIE-LABlab(24.64, 44.24, -51.49)
CIE-LCHlch(24.64, 67.88, 310.67°)
OKLaboklab(37.04% 0.0743 -0.1474)
OKLCHoklch(37.04% 0.165 296.7)
XYZxyz(8.0310, 4.2999, 24.4467)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E8A #5C8A1E
analogous
#1E268A #4C1E8A #821E8A
triadic
#4C1E8A #8A4C1E #1E8A4C
tetradic
#4C1E8A #8A1E26 #5C8A1E #1E8A82
square
#4C1E8A #8A1E26 #5C8A1E #1E8A82
split-complementary
#4C1E8A #8A821E #268A1E
monochromatic
#150825 #301358 #4C1E8A #6829BC #874BD8

Accessibility & contrast

On white

11.29
#4C1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4C1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1E8A
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E8A#FFFFFF#000000##FFFFFF
##4C1E8A1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#3B3B53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1e8a;
/* rgb */ color: rgb(76, 30, 138);
/* oklch */ color: oklch(37.0% 0.165 296.7);
Tailwind
colors: {
  custom: {
    50: '#855fad',
    500: '#4c1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e8a;
$custom-light: #855fad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e8a",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 265.556,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37035,
    "c": 0.16512,
    "h": 296.7
  },
  "luminance": 0.043
}

Semantic roles & 50–950 ramp

primary
#4C1E8A
secondary
#8ABA4A
accent
#E741A0
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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