#4E28A5#4E28A5

#4E28A5 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.185 H 289.4°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4E28A5
RGBrgb(78, 40, 165)
HSLhsl(258, 61%, 40%)
HSVhsv(258, 76%, 65%)
CMYKcmyk(52.7%, 75.8%, 0%, 35.3%)
CIE-LABlab(29.04, 47.22, -60.84)
CIE-LCHlch(29.04, 77.01, 307.81°)
OKLaboklab(40.94% 0.0616 -0.1749)
OKLCHoklch(40.94% 0.185 289.4)
XYZxyz(10.6902, 5.8534, 36.1566)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28A5 #7FA528
analogous
#2840A5 #4E28A5 #8C28A5
triadic
#4E28A5 #A54E28 #28A54E
tetradic
#4E28A5 #A52840 #7FA528 #28A58C
square
#4E28A5 #A52840 #7FA528 #28A58C
split-complementary
#4E28A5 #A58C28 #40A528
monochromatic
#1F1042 #371C74 #4E28A5 #683BCF #8E6CDB

Accessibility & contrast

On white

9.67
#4E28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4E28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28A5
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28A5#FFFFFF#000000##FFFFFF
##4E28A51.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0041A3
Tritanopia (blue-blind)
#2D4A65
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e28a5;
/* rgb */ color: rgb(78, 40, 165);
/* oklch */ color: oklch(40.9% 0.185 289.4);
Tailwind
colors: {
  custom: {
    50: '#8966c1',
    500: '#4e28a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e28a5;
$custom-light: #8966c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28a5",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 258.24,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40941,
    "c": 0.18541,
    "h": 289.4
  },
  "luminance": 0.05854
}

Semantic roles & 50–950 ramp

primary
#4E28A5
secondary
#A6C267
accent
#E444B3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4E28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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