#4E17A0#4E17A0

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

Color values

HEX#4E17A0
RGBrgb(78, 23, 160)
HSLhsl(264, 75%, 36%)
HSVhsv(264, 86%, 63%)
CMYKcmyk(51.2%, 85.6%, 0%, 37.3%)
CIE-LABlab(26.07, 53.06, -62.69)
CIE-LCHlch(26.07, 82.13, 310.24°)
OKLaboklab(38.73% 0.075 -0.1801)
OKLCHoklch(38.73% 0.195 292.6)
XYZxyz(9.7917, 4.7702, 33.6557)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E17A0 #69A017
analogous
#1724A0 #4E17A0 #9217A0
triadic
#4E17A0 #A04E17 #17A04E
tetradic
#4E17A0 #A01724 #69A017 #17A092
square
#4E17A0 #A01724 #69A017 #17A092
split-complementary
#4E17A0 #A09217 #24A017
monochromatic
#1A0835 #340F6A #4E17A0 #681FD6 #8A4CE5

Accessibility & contrast

On white

10.75
#4E17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4E17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E17A0
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E17A0#FFFFFF#000000##FFFFFF
##4E17A01.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#32425E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e17a0;
/* rgb */ color: rgb(78, 23, 160);
/* oklch */ color: oklch(38.7% 0.195 292.6);
Tailwind
colors: {
  custom: {
    50: '#895ebd',
    500: '#4e17a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e17a0;
$custom-light: #895ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e17a0",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 264.088,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38732,
    "c": 0.19511,
    "h": 292.6
  },
  "luminance": 0.04771
}

Semantic roles & 50–950 ramp

primary
#4E17A0
secondary
#96C74C
accent
#F136A6
background
#F9F5FB
surface
#F1E9F7
border
#CBC5D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #4E17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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