#4E28A2#4E28A2

#4E28A2 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.182 H 290.1°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#4E28A2
RGBrgb(78, 40, 162)
HSLhsl(259, 60%, 40%)
HSVhsv(259, 75%, 64%)
CMYKcmyk(51.9%, 75.3%, 0%, 36.5%)
CIE-LABlab(28.76, 46.37, -59.48)
CIE-LCHlch(28.76, 75.42, 307.94°)
OKLaboklab(40.66% 0.0624 -0.1709)
OKLCHoklch(40.66% 0.182 290.1)
XYZxyz(10.4204, 5.7455, 34.7353)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28A2 #7CA228
analogous
#283FA2 #4E28A2 #8B28A2
triadic
#4E28A2 #A24E28 #28A24E
tetradic
#4E28A2 #A2283F #7CA228 #28A28B
square
#4E28A2 #A2283F #7CA228 #28A28B
split-complementary
#4E28A2 #A28B28 #3FA228
monochromatic
#1F1040 #361C71 #4E28A2 #6839CE #8D6ADA

Accessibility & contrast

On white

9.77
#4E28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4E28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28A2
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28A2#FFFFFF#000000##FFFFFF
##4E28A21.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#304963
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e28a2;
/* rgb */ color: rgb(78, 40, 162);
/* oklch */ color: oklch(40.7% 0.182 290.1);
Tailwind
colors: {
  custom: {
    50: '#8866bf',
    500: '#4e28a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e28a2;
$custom-light: #8866bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28a2",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 258.689,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4066,
    "c": 0.18192,
    "h": 290.1
  },
  "luminance": 0.05746
}

Semantic roles & 50–950 ramp

primary
#4E28A2
secondary
#A4C165
accent
#E444B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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