#4A1E8D#4A1E8D

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

Color values

HEX#4A1E8D
RGBrgb(74, 30, 141)
HSLhsl(264, 65%, 34%)
HSVhsv(264, 79%, 55%)
CMYKcmyk(47.5%, 78.7%, 0%, 44.7%)
CIE-LABlab(24.66, 44.71, -53.33)
CIE-LCHlch(24.66, 69.60, 309.98°)
OKLaboklab(37.08% 0.0703 -0.1529)
OKLCHoklch(37.08% 0.168 294.7)
XYZxyz(8.0947, 4.3073, 25.5990)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1E8D #618D1E
analogous
#1E298D #4A1E8D #811E8D
triadic
#4A1E8D #8D4A1E #1E8D4A
tetradic
#4A1E8D #8D1E29 #618D1E #1E8D81
square
#4A1E8D #8D1E29 #618D1E #1E8D81
split-complementary
#4A1E8D #8D811E #298D1E
monochromatic
#150928 #30135B #4A1E8D #6429BF #844CD9

Accessibility & contrast

On white

11.28
#4A1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1E8D
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1E8D#FFFFFF#000000##FFFFFF
##4A1E8D1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#363D55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4a1e8d;
/* rgb */ color: rgb(74, 30, 141);
/* oklch */ color: oklch(37.1% 0.168 294.7);
Tailwind
colors: {
  custom: {
    50: '#845faf',
    500: '#4a1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #4a1e8d;
$custom-light: #845faf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1e8d",
  "rgb": {
    "r": 74,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 263.784,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3708,
    "c": 0.16831,
    "h": 294.7
  },
  "luminance": 0.04307
}

Semantic roles & 50–950 ramp

primary
#4A1E8D
secondary
#8FBC4B
accent
#E840A5
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4A1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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