#4A1774#4A1774

#4A1774 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.148 H 304.3°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#4A1774
RGBrgb(74, 23, 116)
HSLhsl(273, 67%, 27%)
HSVhsv(273, 80%, 45%)
CMYKcmyk(36.2%, 80.2%, 0%, 54.5%)
CIE-LABlab(21.32, 41.30, -42.99)
CIE-LCHlch(21.32, 59.62, 313.85°)
OKLaboklab(34.04% 0.0835 -0.1225)
OKLCHoklch(34.04% 0.148 304.3)
XYZxyz(6.2821, 3.3296, 16.8313)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1774 #417417
analogous
#1C1774 #4A1774 #741770
triadic
#4A1774 #744A17 #17744A
tetradic
#4A1774 #741C17 #417417 #177074
square
#4A1774 #741C17 #417417 #177074
split-complementary
#4A1774 #707417 #17741C
monochromatic
#10051A #290D41 #4A1774 #6B21A7 #8B30D6

Accessibility & contrast

On white

12.61
#4A1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4A1774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1774
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1774#FFFFFF#000000##FFFFFF
##4A17741.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003372
Tritanopia (blue-blind)
#422F45
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4a1774;
/* rgb */ color: rgb(74, 23, 116);
/* oklch */ color: oklch(34.0% 0.148 304.3);
Tailwind
colors: {
  custom: {
    50: '#815a9d',
    500: '#4a1774',
    950: '#000000',
  },
}
SCSS
$custom: #4a1774;
$custom-light: #815a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1774",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 272.903,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3404,
    "c": 0.14829,
    "h": 304.3
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#4A1774
secondary
#6EA93D
accent
#EA3E8C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1774

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

Preview Lab → · Contrast checker → · Palette generator →

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