#4E2980#4E2980

#4E2980 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.8% C 0.140 H 299.1°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#4E2980
RGBrgb(78, 41, 128)
HSLhsl(266, 51%, 33%)
HSVhsv(266, 68%, 50%)
CMYKcmyk(39.1%, 68%, 0%, 49.8%)
CIE-LABlab(26.05, 36.30, -42.91)
CIE-LCHlch(26.05, 56.21, 310.23°)
OKLaboklab(37.83% 0.068 -0.1222)
OKLCHoklch(37.83% 0.14 299.1)
XYZxyz(7.8301, 4.7640, 20.9249)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2980 #5B8029
analogous
#293080 #4E2980 #792980
triadic
#4E2980 #804E29 #29804E
tetradic
#4E2980 #802930 #5B8029 #298079
square
#4E2980 #802930 #5B8029 #298079
split-complementary
#4E2980 #807929 #308029
monochromatic
#160B23 #321A52 #4E2980 #6A38AE #8959CA

Accessibility & contrast

On white

10.75
#4E2980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4E2980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2980
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2980#FFFFFF#000000##FFFFFF
##4E29801.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E83
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#433D51
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2980;
/* rgb */ color: rgb(78, 41, 128);
/* oklch */ color: oklch(37.8% 0.140 299.1);
Tailwind
colors: {
  custom: {
    50: '#8465a5',
    500: '#4e2980',
    950: '#000000',
  },
}
SCSS
$custom: #4e2980;
$custom-light: #8465a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2980",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 128
  },
  "hsl": {
    "h": 265.517,
    "s": 51.479,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37833,
    "c": 0.13989,
    "h": 299.1
  },
  "luminance": 0.04764
}

Semantic roles & 50–950 ramp

primary
#4E2980
secondary
#89AF55
accent
#DB4D9F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2980

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

Preview Lab → · Contrast checker → · Palette generator →

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