#4E28B4#4E28B4

#4E28B4 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.4% C 0.203 H 286.5°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4E28B4
RGBrgb(78, 40, 180)
HSLhsl(256, 64%, 43%)
HSVhsv(256, 78%, 71%)
CMYKcmyk(56.7%, 77.8%, 0%, 29.4%)
CIE-LABlab(30.48, 51.45, -67.48)
CIE-LCHlch(30.48, 84.85, 307.32°)
OKLaboklab(42.38% 0.0574 -0.1943)
OKLCHoklch(42.38% 0.203 286.5)
XYZxyz(12.1364, 6.4319, 43.7731)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28B4 #8EB428
analogous
#2848B4 #4E28B4 #9428B4
triadic
#4E28B4 #B44E28 #28B44E
tetradic
#4E28B4 #B42848 #8EB428 #28B494
square
#4E28B4 #B42848 #8EB428 #28B494
split-complementary
#4E28B4 #B49428 #48B428
monochromatic
#231250 #381D82 #4E28B4 #6B44D5 #9376E1

Accessibility & contrast

On white

9.18
#4E28B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4E28B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28B4
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28B4#FFFFFF#000000##FFFFFF
##4E28B41.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB8
Deuteranopia (green-blind)
#0044B1
Tritanopia (blue-blind)
#1D506D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e28b4;
/* rgb */ color: rgb(78, 40, 180);
/* oklch */ color: oklch(42.4% 0.203 286.5);
Tailwind
colors: {
  custom: {
    50: '#8b67cc',
    500: '#4e28b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e28b4;
$custom-light: #8b67cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28b4",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 256.286,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42383,
    "c": 0.20259,
    "h": 286.5
  },
  "luminance": 0.06433
}

Semantic roles & 50–950 ramp

primary
#4E28B4
secondary
#B0C870
accent
#E741BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E28B4

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

Preview Lab → · Contrast checker → · Palette generator →

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