#4A1074#4A1074

#4A1074 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.155 H 305.2°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#4A1074
RGBrgb(74, 16, 116)
HSLhsl(275, 76%, 26%)
HSVhsv(275, 86%, 45%)
CMYKcmyk(36.2%, 86.2%, 0%, 54.5%)
CIE-LABlab(20.39, 44.00, -44.51)
CIE-LCHlch(20.39, 62.58, 314.67°)
OKLaboklab(33.39% 0.0894 -0.1269)
OKLCHoklch(33.39% 0.155 305.2)
XYZxyz(6.1610, 3.0874, 16.7910)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1074 #3A7410
analogous
#181074 #4A1074 #74106C
triadic
#4A1074 #744A10 #10744A
tetradic
#4A1074 #741810 #3A7410 #106C74
square
#4A1074 #741810 #3A7410 #106C74
split-complementary
#4A1074 #6C7410 #107418
monochromatic
#11041B #28093E #4A1074 #6C17AA #8F1FE0

Accessibility & contrast

On white

12.98
#4A1074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4A1074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1074
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1074#FFFFFF#000000##FFFFFF
##4A10741.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#003172
Tritanopia (blue-blind)
#422C44
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a1074;
/* rgb */ color: rgb(74, 16, 116);
/* oklch */ color: oklch(33.4% 0.155 305.2);
Tailwind
colors: {
  custom: {
    50: '#82579d',
    500: '#4a1074',
    950: '#000000',
  },
}
SCSS
$custom: #4a1074;
$custom-light: #82579d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1074",
  "rgb": {
    "r": 74,
    "g": 16,
    "b": 116
  },
  "hsl": {
    "h": 274.8,
    "s": 75.758,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33394,
    "c": 0.15523,
    "h": 305.2
  },
  "luminance": 0.03087
}

Semantic roles & 50–950 ramp

primary
#4A1074
secondary
#66AB35
accent
#F23585
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1074

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

Preview Lab → · Contrast checker → · Palette generator →

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