#4E28B0#4E28B0

#4E28B0 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.198 H 287.2°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#4E28B0
RGBrgb(78, 40, 176)
HSLhsl(257, 63%, 42%)
HSVhsv(257, 77%, 69%)
CMYKcmyk(55.7%, 77.3%, 0%, 31%)
CIE-LABlab(30.09, 50.32, -65.73)
CIE-LCHlch(30.09, 82.78, 307.44°)
OKLaboklab(41.99% 0.0586 -0.1892)
OKLCHoklch(41.99% 0.198 287.2)
XYZxyz(11.7348, 6.2712, 41.6580)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28B0 #8AB028
analogous
#2846B0 #4E28B0 #9228B0
triadic
#4E28B0 #B04E28 #28B04E
tetradic
#4E28B0 #B02846 #8AB028 #28B092
square
#4E28B0 #B02846 #8AB028 #28B092
split-complementary
#4E28B0 #B09228 #46B028
monochromatic
#22114C #381D7E #4E28B0 #6A41D4 #9173DF

Accessibility & contrast

On white

9.32
#4E28B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E28B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28B0
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28B0#FFFFFF#000000##FFFFFF
##4E28B01.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB4
Deuteranopia (green-blind)
#0043AE
Tritanopia (blue-blind)
#234F6B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e28b0;
/* rgb */ color: rgb(78, 40, 176);
/* oklch */ color: oklch(42.0% 0.198 287.2);
Tailwind
colors: {
  custom: {
    50: '#8b67c9',
    500: '#4e28b0',
    950: '#000000',
  },
}
SCSS
$custom: #4e28b0;
$custom-light: #8b67c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28b0",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 256.765,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41993,
    "c": 0.19804,
    "h": 287.2
  },
  "luminance": 0.06272
}

Semantic roles & 50–950 ramp

primary
#4E28B0
secondary
#AEC66D
accent
#E642B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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