#4C1674#4C1674

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

Color values

HEX#4C1674
RGBrgb(76, 22, 116)
HSLhsl(274, 68%, 27%)
HSVhsv(274, 81%, 45%)
CMYKcmyk(34.5%, 81%, 0%, 54.5%)
CIE-LABlab(21.47, 42.09, -42.73)
CIE-LCHlch(21.47, 59.98, 314.57°)
OKLaboklab(34.21% 0.0875 -0.1216)
OKLCHoklch(34.21% 0.15 305.7)
XYZxyz(6.4191, 3.3713, 16.8322)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1674 #3E7416
analogous
#1D1674 #4C1674 #74166D
triadic
#4C1674 #744C16 #16744C
tetradic
#4C1674 #741D16 #3E7416 #166D74
square
#4C1674 #741D16 #3E7416 #166D74
split-complementary
#4C1674 #6D7416 #16741D
monochromatic
#11051A #2A0C41 #4C1674 #6E20A7 #8F2DD7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C1674#FFFFFF#000000##FFFFFF
##4C16741.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)
#003472
Tritanopia (blue-blind)
#452E45
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c1674;
/* rgb */ color: rgb(76, 22, 116);
/* oklch */ color: oklch(34.2% 0.150 305.7);
Tailwind
colors: {
  custom: {
    50: '#835a9d',
    500: '#4c1674',
    950: '#000000',
  },
}
SCSS
$custom: #4c1674;
$custom-light: #835a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1674",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 274.468,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34213,
    "c": 0.14986,
    "h": 305.7
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#4C1674
secondary
#6BAA3C
accent
#EB3D87
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1674

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

Preview Lab → · Contrast checker → · Palette generator →

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