#4E18A0#4E18A0

#4E18A0 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.8% C 0.194 H 292.5°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#4E18A0
RGBrgb(78, 24, 160)
HSLhsl(264, 74%, 36%)
HSVhsv(264, 85%, 63%)
CMYKcmyk(51.2%, 85%, 0%, 37.3%)
CIE-LABlab(26.19, 52.71, -62.50)
CIE-LCHlch(26.19, 81.75, 310.14°)
OKLaboklab(38.81% 0.0744 -0.1796)
OKLCHoklch(38.81% 0.194 292.5)
XYZxyz(9.8119, 4.8107, 33.6625)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E18A0 #6AA018
analogous
#1826A0 #4E18A0 #9218A0
triadic
#4E18A0 #A04E18 #18A04E
tetradic
#4E18A0 #A01826 #6AA018 #18A092
square
#4E18A0 #A01826 #6AA018 #18A092
split-complementary
#4E18A0 #A09218 #26A018
monochromatic
#1A0836 #34106B #4E18A0 #6820D5 #8A4EE4

Accessibility & contrast

On white

10.70
#4E18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E18A0
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E18A0#FFFFFF#000000##FFFFFF
##4E18A01.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#32425F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e18a0;
/* rgb */ color: rgb(78, 24, 160);
/* oklch */ color: oklch(38.8% 0.194 292.5);
Tailwind
colors: {
  custom: {
    50: '#895ebd',
    500: '#4e18a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e18a0;
$custom-light: #895ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e18a0",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 263.824,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38813,
    "c": 0.19438,
    "h": 292.5
  },
  "luminance": 0.04811
}

Semantic roles & 50–950 ramp

primary
#4E18A0
secondary
#96C64D
accent
#F137A7
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #4E18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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