#4A1674#4A1674

#4A1674 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.149 H 304.4°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#4A1674
RGBrgb(74, 22, 116)
HSLhsl(273, 68%, 27%)
HSVhsv(273, 81%, 45%)
CMYKcmyk(36.2%, 81%, 0%, 54.5%)
CIE-LABlab(21.17, 41.72, -43.23)
CIE-LCHlch(21.17, 60.08, 313.98°)
OKLaboklab(33.94% 0.0845 -0.1232)
OKLCHoklch(33.94% 0.149 304.4)
XYZxyz(6.2626, 3.2906, 16.8248)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1674 #407416
analogous
#1B1674 #4A1674 #74166F
triadic
#4A1674 #744A16 #16744A
tetradic
#4A1674 #741B16 #407416 #166F74
square
#4A1674 #741B16 #407416 #166F74
split-complementary
#4A1674 #6F7416 #16741B
monochromatic
#10051A #290C41 #4A1674 #6B20A7 #8B2DD7

Accessibility & contrast

On white

12.66
#4A1674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4A1674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1674
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1674#FFFFFF#000000##FFFFFF
##4A16741.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.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: #4a1674;
/* rgb */ color: rgb(74, 22, 116);
/* oklch */ color: oklch(33.9% 0.149 304.4);
Tailwind
colors: {
  custom: {
    50: '#815a9d',
    500: '#4a1674',
    950: '#000000',
  },
}
SCSS
$custom: #4a1674;
$custom-light: #815a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1674",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 273.191,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33938,
    "c": 0.14937,
    "h": 304.4
  },
  "luminance": 0.03291
}

Semantic roles & 50–950 ramp

primary
#4A1674
secondary
#6DAA3C
accent
#EB3D8B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1674

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

Preview Lab → · Contrast checker → · Palette generator →

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