#4E18A1#4E18A1

#4E18A1 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.9% C 0.195 H 292.3°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#4E18A1
RGBrgb(78, 24, 161)
HSLhsl(264, 74%, 36%)
HSVhsv(264, 85%, 63%)
CMYKcmyk(51.6%, 85.1%, 0%, 36.9%)
CIE-LABlab(26.29, 52.96, -62.94)
CIE-LCHlch(26.29, 82.26, 310.08°)
OKLaboklab(38.91% 0.0741 -0.1808)
OKLCHoklch(38.91% 0.195 292.3)
XYZxyz(9.8997, 4.8458, 34.1250)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E18A1 #6BA118
analogous
#1826A1 #4E18A1 #9318A1
triadic
#4E18A1 #A14E18 #18A14E
tetradic
#4E18A1 #A11826 #6BA118 #18A193
square
#4E18A1 #A11826 #6BA118 #18A193
split-complementary
#4E18A1 #A19318 #26A118
monochromatic
#1A0836 #34106C #4E18A1 #6820D6 #8A4FE5

Accessibility & contrast

On white

10.66
#4E18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4E18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E18A1
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E18A1#FFFFFF#000000##FFFFFF
##4E18A11.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#003B9F
Tritanopia (blue-blind)
#31425F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e18a1;
/* rgb */ color: rgb(78, 24, 161);
/* oklch */ color: oklch(38.9% 0.195 292.3);
Tailwind
colors: {
  custom: {
    50: '#895ebe',
    500: '#4e18a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e18a1;
$custom-light: #895ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e18a1",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 263.65,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38914,
    "c": 0.19542,
    "h": 292.3
  },
  "luminance": 0.04846
}

Semantic roles & 50–950 ramp

primary
#4E18A1
secondary
#97C74E
accent
#F137A8
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #4E18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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