#4E1678#4E1678

#4E1678 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.154 H 305.4°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#4E1678
RGBrgb(78, 22, 120)
HSLhsl(274, 69%, 28%)
HSVhsv(274, 82%, 47%)
CMYKcmyk(35%, 81.7%, 0%, 52.9%)
CIE-LABlab(22.12, 43.43, -44.22)
CIE-LCHlch(22.12, 61.98, 314.48°)
OKLaboklab(34.84% 0.0895 -0.126)
OKLCHoklch(34.84% 0.155 305.4)
XYZxyz(6.8182, 3.5496, 18.0916)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1678 #407816
analogous
#1D1678 #4E1678 #781671
triadic
#4E1678 #784E16 #16784E
tetradic
#4E1678 #781D16 #407816 #167178
square
#4E1678 #781D16 #407816 #167178
split-complementary
#4E1678 #717816 #16781D
monochromatic
#11051A #2C0D44 #4E1678 #701FAC #902FD9

Accessibility & contrast

On white

12.28
#4E1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1678
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1678#FFFFFF#000000##FFFFFF
##4E16781.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#463047
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1678;
/* rgb */ color: rgb(78, 22, 120);
/* oklch */ color: oklch(34.8% 0.154 305.4);
Tailwind
colors: {
  custom: {
    50: '#845ba0',
    500: '#4e1678',
    950: '#000000',
  },
}
SCSS
$custom: #4e1678;
$custom-light: #845ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1678",
  "rgb": {
    "r": 78,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 274.286,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34839,
    "c": 0.1545,
    "h": 305.4
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#4E1678
secondary
#6DAD3C
accent
#EC3C87
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4E1678

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

Preview Lab → · Contrast checker → · Palette generator →

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