#4A1E76#4A1E76

#4A1E76 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.142 H 302.3°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#4A1E76
RGBrgb(74, 30, 118)
HSLhsl(270, 59%, 29%)
HSVhsv(270, 75%, 46%)
CMYKcmyk(37.3%, 74.6%, 0%, 53.7%)
CIE-LABlab(22.63, 38.57, -42.15)
CIE-LCHlch(22.63, 57.14, 312.47°)
OKLaboklab(35.02% 0.0761 -0.1201)
OKLCHoklch(35.02% 0.142 302.3)
XYZxyz(6.5576, 3.6924, 17.5033)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1E76 #4A761E
analogous
#1E1E76 #4A1E76 #761E76
triadic
#4A1E76 #764A1E #1E764A
tetradic
#4A1E76 #761E1E #4A761E #1E7676
square
#4A1E76 #761E1E #4A761E #1E7676
split-complementary
#4A1E76 #76761E #1E761E
monochromatic
#0F0618 #2B1245 #4A1E76 #692AA7 #8740CE

Accessibility & contrast

On white

12.08
#4A1E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4A1E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1E76
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1E76#FFFFFF#000000##FFFFFF
##4A1E761.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#413348
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a1e76;
/* rgb */ color: rgb(74, 30, 118);
/* oklch */ color: oklch(35.0% 0.142 302.3);
Tailwind
colors: {
  custom: {
    50: '#815e9e',
    500: '#4a1e76',
    950: '#000000',
  },
}
SCSS
$custom: #4a1e76;
$custom-light: #815e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1e76",
  "rgb": {
    "r": 74,
    "g": 30,
    "b": 118
  },
  "hsl": {
    "h": 270,
    "s": 59.459,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35017,
    "c": 0.14214,
    "h": 302.3
  },
  "luminance": 0.03692
}

Semantic roles & 50–950 ramp

primary
#4A1E76
secondary
#78AA46
accent
#E34594
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4A1E76

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

Preview Lab → · Contrast checker → · Palette generator →

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