#4C1874#4C1874

#4C1874 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.148 H 305.5°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#4C1874
RGBrgb(76, 24, 116)
HSLhsl(274, 66%, 27%)
HSVhsv(274, 79%, 45%)
CMYKcmyk(34.5%, 79.3%, 0%, 54.5%)
CIE-LABlab(21.77, 41.25, -42.25)
CIE-LCHlch(21.77, 59.05, 314.31°)
OKLaboklab(34.42% 0.0856 -0.1203)
OKLCHoklch(34.42% 0.148 305.5)
XYZxyz(6.4588, 3.4508, 16.8454)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1874 #407418
analogous
#1E1874 #4C1874 #74186E
triadic
#4C1874 #744C18 #18744C
tetradic
#4C1874 #741E18 #407418 #186E74
square
#4C1874 #741E18 #407418 #186E74
split-complementary
#4C1874 #6E7418 #18741E
monochromatic
#110519 #2B0E41 #4C1874 #6D22A7 #8E32D5

Accessibility & contrast

On white

12.42
#4C1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4C1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1874
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1874#FFFFFF#000000##FFFFFF
##4C18741.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#452F45
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c1874;
/* rgb */ color: rgb(76, 24, 116);
/* oklch */ color: oklch(34.4% 0.148 305.5);
Tailwind
colors: {
  custom: {
    50: '#825b9d',
    500: '#4c1874',
    950: '#000000',
  },
}
SCSS
$custom: #4c1874;
$custom-light: #825b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1874",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 273.913,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34418,
    "c": 0.14765,
    "h": 305.5
  },
  "luminance": 0.03451
}

Semantic roles & 50–950 ramp

primary
#4C1874
secondary
#6DA93F
accent
#E93F89
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1874

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

Preview Lab → · Contrast checker → · Palette generator →

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