#4A1174#4A1174

#4A1174 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.154 H 305.0°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#4A1174
RGBrgb(74, 17, 116)
HSLhsl(275, 74%, 26%)
HSVhsv(275, 85%, 45%)
CMYKcmyk(36.2%, 85.3%, 0%, 54.5%)
CIE-LABlab(20.51, 43.65, -44.31)
CIE-LCHlch(20.51, 62.20, 314.57°)
OKLaboklab(33.48% 0.0886 -0.1263)
OKLCHoklch(33.48% 0.154 305)
XYZxyz(6.1762, 3.1177, 16.7960)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1174 #3B7411
analogous
#181174 #4A1174 #74116C
triadic
#4A1174 #744A11 #11744A
tetradic
#4A1174 #741811 #3B7411 #116C74
square
#4A1174 #741811 #3B7411 #116C74
split-complementary
#4A1174 #6C7411 #117418
monochromatic
#11041B #28093F #4A1174 #6C19A9 #8E21DE

Accessibility & contrast

On white

12.93
#4A1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1174
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1174#FFFFFF#000000##FFFFFF
##4A11741.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.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: #4a1174;
/* rgb */ color: rgb(74, 17, 116);
/* oklch */ color: oklch(33.5% 0.154 305.0);
Tailwind
colors: {
  custom: {
    50: '#82589d',
    500: '#4a1174',
    950: '#000000',
  },
}
SCSS
$custom: #4a1174;
$custom-light: #82589d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1174",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 274.545,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33476,
    "c": 0.15434,
    "h": 305
  },
  "luminance": 0.03118
}

Semantic roles & 50–950 ramp

primary
#4A1174
secondary
#68AB36
accent
#F13786
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1174

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

Preview Lab → · Contrast checker → · Palette generator →

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