#4E28B2#4E28B2

#4E28B2 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.2% C 0.200 H 286.8°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#4E28B2
RGBrgb(78, 40, 178)
HSLhsl(257, 63%, 43%)
HSVhsv(257, 78%, 70%)
CMYKcmyk(56.2%, 77.5%, 0%, 30.2%)
CIE-LABlab(30.28, 50.89, -66.61)
CIE-LCHlch(30.28, 83.82, 307.38°)
OKLaboklab(42.19% 0.058 -0.1917)
OKLCHoklch(42.19% 0.2 286.8)
XYZxyz(11.9342, 6.3510, 42.7079)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28B2 #8CB228
analogous
#2847B2 #4E28B2 #9328B2
triadic
#4E28B2 #B24E28 #28B24E
tetradic
#4E28B2 #B22847 #8CB228 #28B293
square
#4E28B2 #B22847 #8CB228 #28B293
split-complementary
#4E28B2 #B29328 #47B228
monochromatic
#22124E #381D80 #4E28B2 #6B43D5 #9275E0

Accessibility & contrast

On white

9.25
#4E28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E28B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28B2
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28B2#FFFFFF#000000##FFFFFF
##4E28B21.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#20506C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e28b2;
/* rgb */ color: rgb(78, 40, 178);
/* oklch */ color: oklch(42.2% 0.200 286.8);
Tailwind
colors: {
  custom: {
    50: '#8b67ca',
    500: '#4e28b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e28b2;
$custom-light: #8b67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28b2",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 256.522,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42188,
    "c": 0.20032,
    "h": 286.8
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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