#4A1EA8#4A1EA8

#4A1EA8 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.198 H 288.1°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#4A1EA8
RGBrgb(74, 30, 168)
HSLhsl(259, 70%, 39%)
HSVhsv(259, 82%, 66%)
CMYKcmyk(56%, 82.1%, 0%, 34.1%)
CIE-LABlab(27.33, 52.04, -65.49)
CIE-LCHlch(27.33, 83.65, 308.47°)
OKLaboklab(39.74% 0.0615 -0.1885)
OKLCHoklch(39.74% 0.198 288.1)
XYZxyz(10.3541, 5.2110, 37.4984)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1EA8 #7CA81E
analogous
#1E37A8 #4A1EA8 #8F1EA8
triadic
#4A1EA8 #A84A1E #1EA84A
tetradic
#4A1EA8 #A81E37 #7CA81E #1EA88F
square
#4A1EA8 #A81E37 #7CA81E #1EA88F
split-complementary
#4A1EA8 #A88F1E #37A81E
monochromatic
#1C0B40 #331574 #4A1EA8 #622AD9 #885EE2

Accessibility & contrast

On white

10.28
#4A1EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4A1EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1EA8
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1EA8#FFFFFF#000000##FFFFFF
##4A1EA81.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#003DA6
Tritanopia (blue-blind)
#214864
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a1ea8;
/* rgb */ color: rgb(74, 30, 168);
/* oklch */ color: oklch(39.7% 0.198 288.1);
Tailwind
colors: {
  custom: {
    50: '#8861c3',
    500: '#4a1ea8',
    950: '#000000',
  },
}
SCSS
$custom: #4a1ea8;
$custom-light: #8861c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1ea8",
  "rgb": {
    "r": 74,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 259.13,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39736,
    "c": 0.19828,
    "h": 288.1
  },
  "luminance": 0.05212
}

Semantic roles & 50–950 ramp

primary
#4A1EA8
secondary
#A4C75B
accent
#ED3BB4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0513
muted
#7D7A82

Preview Lab

Preview with #4A1EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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