#4E1790#4E1790

#4E1790 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.178 H 297.0°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#4E1790
RGBrgb(78, 23, 144)
HSLhsl(267, 72%, 33%)
HSVhsv(267, 84%, 56%)
CMYKcmyk(45.8%, 84%, 0%, 43.5%)
CIE-LABlab(24.47, 49.00, -55.49)
CIE-LCHlch(24.47, 74.03, 311.44°)
OKLaboklab(37.15% 0.081 -0.159)
OKLCHoklch(37.15% 0.178 297)
XYZxyz(8.4810, 4.2459, 26.7529)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1790 #599017
analogous
#171C90 #4E1790 #8B1790
triadic
#4E1790 #904E17 #17904E
tetradic
#4E1790 #90171C #599017 #17908B
square
#4E1790 #90171C #599017 #17908B
split-complementary
#4E1790 #908B17 #1C9017
monochromatic
#150626 #310F5B #4E1790 #6B1FC5 #8941E1

Accessibility & contrast

On white

11.36
#4E1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4E1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1790
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1790#FFFFFF#000000##FFFFFF
##4E17901.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#00398E
Tritanopia (blue-blind)
#3C3B55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e1790;
/* rgb */ color: rgb(78, 23, 144);
/* oklch */ color: oklch(37.1% 0.178 297.0);
Tailwind
colors: {
  custom: {
    50: '#875db2',
    500: '#4e1790',
    950: '#000000',
  },
}
SCSS
$custom: #4e1790;
$custom-light: #875db2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1790",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 267.273,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37148,
    "c": 0.17849,
    "h": 297
  },
  "luminance": 0.04246
}

Semantic roles & 50–950 ramp

primary
#4E1790
secondary
#87C142
accent
#EF399C
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E1790

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

Preview Lab → · Contrast checker → · Palette generator →

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