#4E17B4#4E17B4

#4E17B4 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.8% C 0.216 H 288.1°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#4E17B4
RGBrgb(78, 23, 180)
HSLhsl(261, 77%, 40%)
HSVhsv(261, 87%, 71%)
CMYKcmyk(56.7%, 87.2%, 0%, 29.4%)
CIE-LABlab(28.19, 58.15, -71.25)
CIE-LCHlch(28.19, 91.97, 309.22°)
OKLaboklab(40.81% 0.067 -0.2051)
OKLCHoklch(40.81% 0.216 288.1)
XYZxyz(11.6841, 5.5272, 43.6223)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E17B4 #7DB417
analogous
#172FB4 #4E17B4 #9D17B4
triadic
#4E17B4 #B44E17 #17B44E
tetradic
#4E17B4 #B4172F #7DB417 #17B49D
square
#4E17B4 #B4172F #7DB417 #17B49D
split-complementary
#4E17B4 #B49D17 #2FB417
monochromatic
#1F0947 #36107E #4E17B4 #6825E3 #8D5BEA

Accessibility & contrast

On white

9.97
#4E17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4E17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E17B4
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E17B4#FFFFFF#000000##FFFFFF
##4E17B41.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#1F4A6A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e17b4;
/* rgb */ color: rgb(78, 23, 180);
/* oklch */ color: oklch(40.8% 0.216 288.1);
Tailwind
colors: {
  custom: {
    50: '#8c5fcc',
    500: '#4e17b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e17b4;
$custom-light: #8c5fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e17b4",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 261.019,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40805,
    "c": 0.21579,
    "h": 288.1
  },
  "luminance": 0.05528
}

Semantic roles & 50–950 ramp

primary
#4E17B4
secondary
#A5CE59
accent
#F434B1
background
#F9F5FC
surface
#F2EAF9
border
#CCC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4E17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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