#4C1A8E#4C1A8E

#4C1A8E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.174 H 296.1°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#4C1A8E
RGBrgb(76, 26, 142)
HSLhsl(266, 69%, 33%)
HSVhsv(266, 82%, 56%)
CMYKcmyk(46.5%, 81.7%, 0%, 44.3%)
CIE-LABlab(24.41, 47.02, -54.35)
CIE-LCHlch(24.41, 71.87, 310.86°)
OKLaboklab(36.99% 0.0764 -0.1558)
OKLCHoklch(36.99% 0.174 296.1)
XYZxyz(8.2311, 4.2281, 25.9684)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1A8E #5C8E1A
analogous
#1A228E #4C1A8E #861A8E
triadic
#4C1A8E #8E4C1A #1A8E4C
tetradic
#4C1A8E #8E1A22 #5C8E1A #1A8E86
square
#4C1A8E #8E1A22 #5C8E1A #1A8E86
split-complementary
#4C1A8E #8E861A #228E1A
monochromatic
#150727 #30115A #4C1A8E #6823C2 #8745DD

Accessibility & contrast

On white

11.38
#4C1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4C1A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1A8E
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1A8E#FFFFFF#000000##FFFFFF
##4C1A8E1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#393B54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1a8e;
/* rgb */ color: rgb(76, 26, 142);
/* oklch */ color: oklch(37.0% 0.174 296.1);
Tailwind
colors: {
  custom: {
    50: '#855eb0',
    500: '#4c1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #4c1a8e;
$custom-light: #855eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1a8e",
  "rgb": {
    "r": 76,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 265.862,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36991,
    "c": 0.17351,
    "h": 296.1
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#4C1A8E
secondary
#8ABE45
accent
#EC3CA0
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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