#4E2A80#4E2A80

#4E2A80 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.138 H 298.9°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#4E2A80
RGBrgb(78, 42, 128)
HSLhsl(265, 51%, 33%)
HSVhsv(265, 67%, 50%)
CMYKcmyk(39.1%, 67.2%, 0%, 49.8%)
CIE-LABlab(26.26, 35.74, -42.58)
CIE-LCHlch(26.26, 55.60, 310.01°)
OKLaboklab(37.98% 0.0668 -0.1213)
OKLCHoklch(37.98% 0.138 298.9)
XYZxyz(7.8652, 4.8340, 20.9366)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A80 #5C802A
analogous
#2A3180 #4E2A80 #792A80
triadic
#4E2A80 #804E2A #2A804E
tetradic
#4E2A80 #802A31 #5C802A #2A8079
square
#4E2A80 #802A31 #5C802A #2A8079
split-complementary
#4E2A80 #80792A #31802A
monochromatic
#160C24 #321B52 #4E2A80 #6A39AE #895BC9

Accessibility & contrast

On white

10.68
#4E2A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4E2A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A80
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A80#FFFFFF#000000##FFFFFF
##4E2A801.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2a80;
/* rgb */ color: rgb(78, 42, 128);
/* oklch */ color: oklch(38.0% 0.138 298.9);
Tailwind
colors: {
  custom: {
    50: '#8466a5',
    500: '#4e2a80',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a80;
$custom-light: #8466a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a80",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 265.116,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37981,
    "c": 0.13846,
    "h": 298.9
  },
  "luminance": 0.04834
}

Semantic roles & 50–950 ramp

primary
#4E2A80
secondary
#8AAF57
accent
#DA4E9F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2A80

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

Preview Lab → · Contrast checker → · Palette generator →

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