#4E28AF#4E28AF

#4E28AF is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.197 H 287.4°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#4E28AF
RGBrgb(78, 40, 175)
HSLhsl(257, 63%, 42%)
HSVhsv(257, 77%, 69%)
CMYKcmyk(55.4%, 77.1%, 0%, 31.4%)
CIE-LABlab(29.99, 50.04, -65.29)
CIE-LCHlch(29.99, 82.26, 307.47°)
OKLaboklab(41.9% 0.0589 -0.1879)
OKLCHoklch(41.9% 0.197 287.4)
XYZxyz(11.6362, 6.2318, 41.1388)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28AF #89AF28
analogous
#2845AF #4E28AF #9228AF
triadic
#4E28AF #AF4E28 #28AF4E
tetradic
#4E28AF #AF2845 #89AF28 #28AF92
square
#4E28AF #AF2845 #89AF28 #28AF92
split-complementary
#4E28AF #AF9228 #45AF28
monochromatic
#22114B #381D7D #4E28AF #6A41D4 #9173DF

Accessibility & contrast

On white

9.35
#4E28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E28AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28AF
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28AF#FFFFFF#000000##FFFFFF
##4E28AF1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#244E6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e28af;
/* rgb */ color: rgb(78, 40, 175);
/* oklch */ color: oklch(41.9% 0.197 287.4);
Tailwind
colors: {
  custom: {
    50: '#8a67c8',
    500: '#4e28af',
    950: '#000000',
  },
}
SCSS
$custom: #4e28af;
$custom-light: #8a67c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28af",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 256.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41896,
    "c": 0.19691,
    "h": 287.4
  },
  "luminance": 0.06232
}

Semantic roles & 50–950 ramp

primary
#4E28AF
secondary
#ADC66D
accent
#E642B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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