#4A1E79#4A1E79

#4A1E79 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.146 H 301.2°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#4A1E79
RGBrgb(74, 30, 121)
HSLhsl(269, 60%, 30%)
HSVhsv(269, 75%, 47%)
CMYKcmyk(38.8%, 75.2%, 0%, 52.5%)
CIE-LABlab(22.88, 39.36, -43.66)
CIE-LCHlch(22.88, 58.78, 312.04°)
OKLaboklab(35.27% 0.0754 -0.1245)
OKLCHoklch(35.27% 0.146 301.2)
XYZxyz(6.7387, 3.7648, 18.4571)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1E79 #4D791E
analogous
#1E2079 #4A1E79 #781E79
triadic
#4A1E79 #794A1E #1E794A
tetradic
#4A1E79 #791E20 #4D791E #1E7978
square
#4A1E79 #791E20 #4D791E #1E7978
split-complementary
#4A1E79 #79781E #20791E
monochromatic
#0F0619 #2C1248 #4A1E79 #682AAA #8641D0

Accessibility & contrast

On white

11.98
#4A1E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4A1E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1E79
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1E79#FFFFFF#000000##FFFFFF
##4A1E791.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#403449
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a1e79;
/* rgb */ color: rgb(74, 30, 121);
/* oklch */ color: oklch(35.3% 0.146 301.2);
Tailwind
colors: {
  custom: {
    50: '#815ea0',
    500: '#4a1e79',
    950: '#000000',
  },
}
SCSS
$custom: #4a1e79;
$custom-light: #815ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1e79",
  "rgb": {
    "r": 74,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 269.011,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35273,
    "c": 0.14558,
    "h": 301.2
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#4A1E79
secondary
#7BAD46
accent
#E34497
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4A1E79

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

Preview Lab → · Contrast checker → · Palette generator →

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