#4A1E8F#4A1E8F

#4A1E8F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.171 H 294.1°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#4A1E8F
RGBrgb(74, 30, 143)
HSLhsl(263, 65%, 34%)
HSVhsv(263, 79%, 56%)
CMYKcmyk(48.3%, 79%, 0%, 43.9%)
CIE-LABlab(24.85, 45.26, -54.27)
CIE-LCHlch(24.85, 70.66, 309.83°)
OKLaboklab(37.27% 0.0697 -0.1557)
OKLCHoklch(37.27% 0.171 294.1)
XYZxyz(8.2449, 4.3673, 26.3898)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1E8F #638F1E
analogous
#1E2B8F #4A1E8F #831E8F
triadic
#4A1E8F #8F4A1E #1E8F4A
tetradic
#4A1E8F #8F1E2B #638F1E #1E8F83
square
#4A1E8F #8F1E2B #638F1E #1E8F83
split-complementary
#4A1E8F #8F831E #2B8F1E
monochromatic
#16092A #30135C #4A1E8F #6429C2 #844EDA

Accessibility & contrast

On white

11.21
#4A1E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1E8F
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1E8F#FFFFFF#000000##FFFFFF
##4A1E8F1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#353D56
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4a1e8f;
/* rgb */ color: rgb(74, 30, 143);
/* oklch */ color: oklch(37.3% 0.171 294.1);
Tailwind
colors: {
  custom: {
    50: '#845fb1',
    500: '#4a1e8f',
    950: '#000000',
  },
}
SCSS
$custom: #4a1e8f;
$custom-light: #845fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1e8f",
  "rgb": {
    "r": 74,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 263.363,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37269,
    "c": 0.17056,
    "h": 294.1
  },
  "luminance": 0.04368
}

Semantic roles & 50–950 ramp

primary
#4A1E8F
secondary
#91BC4C
accent
#E840A7
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A1E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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