#4E28BC#4E28BC

#4E28BC is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.2% C 0.212 H 285.1°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#4E28BC
RGBrgb(78, 40, 188)
HSLhsl(255, 65%, 45%)
HSVhsv(255, 79%, 74%)
CMYKcmyk(58.5%, 78.7%, 0%, 26.3%)
CIE-LABlab(31.27, 53.70, -70.91)
CIE-LCHlch(31.27, 88.95, 307.13°)
OKLaboklab(43.18% 0.0551 -0.2043)
OKLCHoklch(43.18% 0.212 285.1)
XYZxyz(12.9750, 6.7673, 48.1897)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28BC #96BC28
analogous
#284CBC #4E28BC #9828BC
triadic
#4E28BC #BC4E28 #28BC4E
tetradic
#4E28BC #BC284C #96BC28 #28BC98
square
#4E28BC #BC284C #96BC28 #28BC98
split-complementary
#4E28BC #BC9828 #4CBC28
monochromatic
#241357 #391D8A #4E28BC #6E49D8 #967BE3

Accessibility & contrast

On white

8.92
#4E28BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4E28BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28BC
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28BC#FFFFFF#000000##FFFFFF
##4E28BC1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0045B9
Tritanopia (blue-blind)
#0D5472
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e28bc;
/* rgb */ color: rgb(78, 40, 188);
/* oklch */ color: oklch(43.2% 0.212 285.1);
Tailwind
colors: {
  custom: {
    50: '#8d67d1',
    500: '#4e28bc',
    950: '#000000',
  },
}
SCSS
$custom: #4e28bc;
$custom-light: #8d67d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28bc",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 255.405,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43175,
    "c": 0.21161,
    "h": 285.1
  },
  "luminance": 0.06768
}

Semantic roles & 50–950 ramp

primary
#4E28BC
secondary
#B5CB75
accent
#E840BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4E28BC

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

Preview Lab → · Contrast checker → · Palette generator →

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