#4A1EA6#4A1EA6

#4A1EA6 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.196 H 288.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4A1EA6
RGBrgb(74, 30, 166)
HSLhsl(259, 69%, 38%)
HSVhsv(259, 82%, 65%)
CMYKcmyk(55.4%, 81.9%, 0%, 34.9%)
CIE-LABlab(27.12, 51.50, -64.62)
CIE-LCHlch(27.12, 82.63, 308.55°)
OKLaboklab(39.53% 0.0622 -0.1859)
OKLCHoklch(39.53% 0.196 288.5)
XYZxyz(10.1692, 5.1370, 36.5247)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1EA6 #7AA61E
analogous
#1E36A6 #4A1EA6 #8E1EA6
triadic
#4A1EA6 #A64A1E #1EA64A
tetradic
#4A1EA6 #A61E36 #7AA61E #1EA68E
square
#4A1EA6 #A61E36 #7AA61E #1EA68E
split-complementary
#4A1EA6 #A68E1E #36A61E
monochromatic
#1C0B3E #331572 #4A1EA6 #6229D8 #885DE2

Accessibility & contrast

On white

10.36
#4A1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4A1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1EA6
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1EA6#FFFFFF#000000##FFFFFF
##4A1EA61.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#003DA4
Tritanopia (blue-blind)
#234763
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a1ea6;
/* rgb */ color: rgb(74, 30, 166);
/* oklch */ color: oklch(39.5% 0.196 288.5);
Tailwind
colors: {
  custom: {
    50: '#8861c2',
    500: '#4a1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #4a1ea6;
$custom-light: #8861c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1ea6",
  "rgb": {
    "r": 74,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 259.412,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39532,
    "c": 0.19608,
    "h": 288.5
  },
  "luminance": 0.05138
}

Semantic roles & 50–950 ramp

primary
#4A1EA6
secondary
#A3C65A
accent
#EC3CB3
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0D0513
muted
#7D7982

Preview Lab

Preview with #4A1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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