#4C1E8B#4C1E8B

#4C1E8B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.166 H 296.4°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#4C1E8B
RGBrgb(76, 30, 139)
HSLhsl(265, 64%, 33%)
HSVhsv(265, 78%, 55%)
CMYKcmyk(45.3%, 78.4%, 0%, 45.5%)
CIE-LABlab(24.73, 44.50, -51.96)
CIE-LCHlch(24.73, 68.42, 310.58°)
OKLaboklab(37.13% 0.074 -0.1488)
OKLCHoklch(37.13% 0.166 296.4)
XYZxyz(8.1037, 4.3289, 24.8297)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E8B #5D8B1E
analogous
#1E268B #4C1E8B #821E8B
triadic
#4C1E8B #8B4C1E #1E8B4C
tetradic
#4C1E8B #8B1E26 #5D8B1E #1E8B82
square
#4C1E8B #8B1E26 #5D8B1E #1E8B82
split-complementary
#4C1E8B #8B821E #268B1E
monochromatic
#150826 #301359 #4C1E8B #6829BD #874BD8

Accessibility & contrast

On white

11.26
#4C1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4C1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1E8B
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E8B#FFFFFF#000000##FFFFFF
##4C1E8B1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#3B3C54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c1e8b;
/* rgb */ color: rgb(76, 30, 139);
/* oklch */ color: oklch(37.1% 0.166 296.4);
Tailwind
colors: {
  custom: {
    50: '#855fae',
    500: '#4c1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e8b;
$custom-light: #855fae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e8b",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 265.321,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37128,
    "c": 0.16623,
    "h": 296.4
  },
  "luminance": 0.04329
}

Semantic roles & 50–950 ramp

primary
#4C1E8B
secondary
#8BBB4A
accent
#E740A1
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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