#4E1674#4E1674

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

Color values

HEX#4E1674
RGBrgb(78, 22, 116)
HSLhsl(276, 68%, 27%)
HSVhsv(276, 81%, 45%)
CMYKcmyk(32.8%, 81%, 0%, 54.5%)
CIE-LABlab(21.78, 42.47, -42.22)
CIE-LCHlch(21.78, 59.88, 315.17°)
OKLaboklab(34.49% 0.0905 -0.1201)
OKLCHoklch(34.49% 0.15 307)
XYZxyz(6.5805, 3.4546, 16.8397)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1674 #3C7416
analogous
#1F1674 #4E1674 #74166B
triadic
#4E1674 #744E16 #16744E
tetradic
#4E1674 #741F16 #3C7416 #166B74
square
#4E1674 #741F16 #3C7416 #166B74
split-complementary
#4E1674 #6B7416 #16741F
monochromatic
#11051A #2B0C41 #4E1674 #7120A7 #922DD7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E1674#FFFFFF#000000##FFFFFF
##4E16741.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)
#003277
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#472E45
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1674;
/* rgb */ color: rgb(78, 22, 116);
/* oklch */ color: oklch(34.5% 0.150 307.0);
Tailwind
colors: {
  custom: {
    50: '#845a9d',
    500: '#4e1674',
    950: '#000000',
  },
}
SCSS
$custom: #4e1674;
$custom-light: #845a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1674",
  "rgb": {
    "r": 78,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 275.745,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34491,
    "c": 0.15037,
    "h": 307
  },
  "luminance": 0.03454
}

Semantic roles & 50–950 ramp

primary
#4E1674
secondary
#68AA3C
accent
#EB3D83
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1674

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

Preview Lab → · Contrast checker → · Palette generator →

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