#4E28B3#4E28B3

#4E28B3 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.3% C 0.201 H 286.6°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4E28B3
RGBrgb(78, 40, 179)
HSLhsl(256, 63%, 43%)
HSVhsv(256, 78%, 70%)
CMYKcmyk(56.4%, 77.7%, 0%, 29.8%)
CIE-LABlab(30.38, 51.17, -67.04)
CIE-LCHlch(30.38, 84.34, 307.35°)
OKLaboklab(42.29% 0.0577 -0.193)
OKLCHoklch(42.29% 0.201 286.6)
XYZxyz(12.0349, 6.3913, 43.2386)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28B3 #8DB328
analogous
#2847B3 #4E28B3 #9328B3
triadic
#4E28B3 #B34E28 #28B34E
tetradic
#4E28B3 #B32847 #8DB328 #28B393
square
#4E28B3 #B32847 #8DB328 #28B393
split-complementary
#4E28B3 #B39328 #47B328
monochromatic
#22124F #381D81 #4E28B3 #6B43D5 #9275E0

Accessibility & contrast

On white

9.22
#4E28B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4E28B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28B3
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28B3#FFFFFF#000000##FFFFFF
##4E28B31.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#1F506D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e28b3;
/* rgb */ color: rgb(78, 40, 179);
/* oklch */ color: oklch(42.3% 0.201 286.6);
Tailwind
colors: {
  custom: {
    50: '#8b67cb',
    500: '#4e28b3',
    950: '#000000',
  },
}
SCSS
$custom: #4e28b3;
$custom-light: #8b67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28b3",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 256.403,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42285,
    "c": 0.20146,
    "h": 286.6
  },
  "luminance": 0.06392
}

Semantic roles & 50–950 ramp

primary
#4E28B3
secondary
#AFC86F
accent
#E641B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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