#4A1874#4A1874

#4A1874 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.147 H 304.1°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#4A1874
RGBrgb(74, 24, 116)
HSLhsl(273, 66%, 27%)
HSVhsv(273, 79%, 45%)
CMYKcmyk(36.2%, 79.3%, 0%, 54.5%)
CIE-LABlab(21.47, 40.87, -42.75)
CIE-LCHlch(21.47, 59.14, 313.71°)
OKLaboklab(34.15% 0.0826 -0.1218)
OKLCHoklch(34.15% 0.147 304.1)
XYZxyz(6.3023, 3.3701, 16.8381)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1874 #427418
analogous
#1C1874 #4A1874 #741870
triadic
#4A1874 #744A18 #18744A
tetradic
#4A1874 #741C18 #427418 #187074
square
#4A1874 #741C18 #427418 #187074
split-complementary
#4A1874 #707418 #18741C
monochromatic
#100519 #2A0E41 #4A1874 #6A22A7 #8A32D5

Accessibility & contrast

On white

12.54
#4A1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1874
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1874#FFFFFF#000000##FFFFFF
##4A18741.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.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: #4a1874;
/* rgb */ color: rgb(74, 24, 116);
/* oklch */ color: oklch(34.1% 0.147 304.1);
Tailwind
colors: {
  custom: {
    50: '#815b9d',
    500: '#4a1874',
    950: '#000000',
  },
}
SCSS
$custom: #4a1874;
$custom-light: #815b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1874",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 272.609,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34146,
    "c": 0.14716,
    "h": 304.1
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#4A1874
secondary
#6FA93F
accent
#E93F8D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1874

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

Preview Lab → · Contrast checker → · Palette generator →

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