#4E1874#4E1874

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

Color values

HEX#4E1874
RGBrgb(78, 24, 116)
HSLhsl(275, 66%, 27%)
HSVhsv(275, 79%, 45%)
CMYKcmyk(32.8%, 79.3%, 0%, 54.5%)
CIE-LABlab(22.07, 41.64, -41.75)
CIE-LCHlch(22.07, 58.97, 314.92°)
OKLaboklab(34.69% 0.0887 -0.1187)
OKLCHoklch(34.69% 0.148 306.8)
XYZxyz(6.6202, 3.5340, 16.8530)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1874 #3E7418
analogous
#201874 #4E1874 #74186C
triadic
#4E1874 #744E18 #18744E
tetradic
#4E1874 #742018 #3E7418 #186C74
square
#4E1874 #742018 #3E7418 #186C74
split-complementary
#4E1874 #6C7418 #187420
monochromatic
#110519 #2C0E41 #4E1874 #7022A7 #9132D5

Accessibility & contrast

On white

12.30
#4E1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1874
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1874#FFFFFF#000000##FFFFFF
##4E18741.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#472F45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1874;
/* rgb */ color: rgb(78, 24, 116);
/* oklch */ color: oklch(34.7% 0.148 306.8);
Tailwind
colors: {
  custom: {
    50: '#845b9d',
    500: '#4e1874',
    950: '#000000',
  },
}
SCSS
$custom: #4e1874;
$custom-light: #845b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1874",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 275.217,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34693,
    "c": 0.14816,
    "h": 306.8
  },
  "luminance": 0.03534
}

Semantic roles & 50–950 ramp

primary
#4E1874
secondary
#6BA93F
accent
#E93F85
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1874

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

Preview Lab → · Contrast checker → · Palette generator →

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