#4A1C8E#4A1C8E

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

Color values

HEX#4A1C8E
RGBrgb(74, 28, 142)
HSLhsl(264, 67%, 33%)
HSVhsv(264, 80%, 56%)
CMYKcmyk(47.9%, 80.3%, 0%, 44.3%)
CIE-LABlab(24.45, 45.88, -54.31)
CIE-LCHlch(24.45, 71.09, 310.19°)
OKLaboklab(36.96% 0.0716 -0.1558)
OKLCHoklch(36.96% 0.171 294.7)
XYZxyz(8.1204, 4.2391, 25.9763)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1C8E #608E1C
analogous
#1C278E #4A1C8E #831C8E
triadic
#4A1C8E #8E4A1C #1C8E4A
tetradic
#4A1C8E #8E1C27 #608E1C #1C8E83
square
#4A1C8E #8E1C27 #608E1C #1C8E83
split-complementary
#4A1C8E #8E831C #278E1C
monochromatic
#150828 #2F125B #4A1C8E #6526C1 #8449DB

Accessibility & contrast

On white

11.36
#4A1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1C8E
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1C8E#FFFFFF#000000##FFFFFF
##4A1C8E1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1c8e;
/* rgb */ color: rgb(74, 28, 142);
/* oklch */ color: oklch(37.0% 0.171 294.7);
Tailwind
colors: {
  custom: {
    50: '#845eb0',
    500: '#4a1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #4a1c8e;
$custom-light: #845eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1c8e",
  "rgb": {
    "r": 74,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 264.211,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36958,
    "c": 0.17144,
    "h": 294.7
  },
  "luminance": 0.04239
}

Semantic roles & 50–950 ramp

primary
#4A1C8E
secondary
#8EBD49
accent
#EA3EA5
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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