#4E28B1#4E28B1

#4E28B1 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.199 H 287.0°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#4E28B1
RGBrgb(78, 40, 177)
HSLhsl(257, 63%, 43%)
HSVhsv(257, 77%, 69%)
CMYKcmyk(55.9%, 77.4%, 0%, 30.6%)
CIE-LABlab(30.18, 50.60, -66.17)
CIE-LCHlch(30.18, 83.30, 307.41°)
OKLaboklab(42.09% 0.0583 -0.1905)
OKLCHoklch(42.09% 0.199 287)
XYZxyz(11.8341, 6.3110, 42.1810)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28B1 #8BB128
analogous
#2847B1 #4E28B1 #9228B1
triadic
#4E28B1 #B14E28 #28B14E
tetradic
#4E28B1 #B12847 #8BB128 #28B192
square
#4E28B1 #B12847 #8BB128 #28B192
split-complementary
#4E28B1 #B19228 #47B128
monochromatic
#22114D #381D7F #4E28B1 #6B42D4 #9274E0

Accessibility & contrast

On white

9.28
#4E28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4E28B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28B1
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28B1#FFFFFF#000000##FFFFFF
##4E28B11.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#214F6C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e28b1;
/* rgb */ color: rgb(78, 40, 177);
/* oklch */ color: oklch(42.1% 0.199 287.0);
Tailwind
colors: {
  custom: {
    50: '#8b67ca',
    500: '#4e28b1',
    950: '#000000',
  },
}
SCSS
$custom: #4e28b1;
$custom-light: #8b67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28b1",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 256.642,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4209,
    "c": 0.19918,
    "h": 287
  },
  "luminance": 0.06312
}

Semantic roles & 50–950 ramp

primary
#4E28B1
secondary
#AEC76E
accent
#E642B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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