#4E2780#4E2780

#4E2780 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.143 H 299.5°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#4E2780
RGBrgb(78, 39, 128)
HSLhsl(266, 53%, 33%)
HSVhsv(266, 70%, 50%)
CMYKcmyk(39.1%, 69.5%, 0%, 49.8%)
CIE-LABlab(25.65, 37.40, -43.56)
CIE-LCHlch(25.65, 57.42, 310.65°)
OKLaboklab(37.55% 0.0704 -0.1241)
OKLCHoklch(37.55% 0.143 299.5)
XYZxyz(7.7627, 4.6292, 20.9024)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2780 #598027
analogous
#272D80 #4E2780 #7A2780
triadic
#4E2780 #804E27 #27804E
tetradic
#4E2780 #80272D #598027 #27807A
square
#4E2780 #80272D #598027 #27807A
split-complementary
#4E2780 #807A27 #2D8027
monochromatic
#150A22 #311951 #4E2780 #6B35AF #8956CB

Accessibility & contrast

On white

10.90
#4E2780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4E2780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2780
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2780#FFFFFF#000000##FFFFFF
##4E27801.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D83
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#433C50
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2780;
/* rgb */ color: rgb(78, 39, 128);
/* oklch */ color: oklch(37.5% 0.143 299.5);
Tailwind
colors: {
  custom: {
    50: '#8464a5',
    500: '#4e2780',
    950: '#000000',
  },
}
SCSS
$custom: #4e2780;
$custom-light: #8464a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2780",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 128
  },
  "hsl": {
    "h": 266.292,
    "s": 53.293,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37545,
    "c": 0.14268,
    "h": 299.5
  },
  "luminance": 0.04629
}

Semantic roles & 50–950 ramp

primary
#4E2780
secondary
#87B053
accent
#DD4B9D
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4E2780

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

Preview Lab → · Contrast checker → · Palette generator →

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