#4A1E72#4A1E72

#4A1E72 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.138 H 303.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#4A1E72
RGBrgb(74, 30, 114)
HSLhsl(271, 58%, 28%)
HSVhsv(271, 74%, 45%)
CMYKcmyk(35.1%, 73.7%, 0%, 55.3%)
CIE-LABlab(22.30, 37.53, -40.11)
CIE-LCHlch(22.30, 54.93, 313.10°)
OKLaboklab(34.68% 0.0768 -0.1141)
OKLCHoklch(34.68% 0.138 303.9)
XYZxyz(6.3249, 3.5993, 16.2779)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1E72 #46721E
analogous
#201E72 #4A1E72 #721E70
triadic
#4A1E72 #724A1E #1E724A
tetradic
#4A1E72 #72201E #46721E #1E7072
square
#4A1E72 #72201E #46721E #1E7072
split-complementary
#4A1E72 #70721E #1E7220
monochromatic
#100618 #2B1142 #4A1E72 #692BA2 #893ECC

Accessibility & contrast

On white

12.21
#4A1E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4A1E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1E72
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1E72#FFFFFF#000000##FFFFFF
##4A1E721.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#423246
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a1e72;
/* rgb */ color: rgb(74, 30, 114);
/* oklch */ color: oklch(34.7% 0.138 303.9);
Tailwind
colors: {
  custom: {
    50: '#815e9b',
    500: '#4a1e72',
    950: '#000000',
  },
}
SCSS
$custom: #4a1e72;
$custom-light: #815e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1e72",
  "rgb": {
    "r": 74,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 271.429,
    "s": 58.333,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34682,
    "c": 0.13753,
    "h": 303.9
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

primary
#4A1E72
secondary
#74A646
accent
#E24690
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1E72

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

Preview Lab → · Contrast checker → · Palette generator →

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