#4E2790#4E2790

#4E2790 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.162 H 294.7°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#4E2790
RGBrgb(78, 39, 144)
HSLhsl(262, 57%, 36%)
HSVhsv(262, 73%, 56%)
CMYKcmyk(45.8%, 72.9%, 0%, 43.5%)
CIE-LABlab(26.97, 41.82, -51.39)
CIE-LCHlch(26.97, 66.26, 309.14°)
OKLaboklab(38.9% 0.0675 -0.1471)
OKLCHoklch(38.9% 0.162 294.7)
XYZxyz(8.9001, 5.0841, 26.8926)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2790 #699027
analogous
#273490 #4E2790 #822790
triadic
#4E2790 #904E27 #27904E
tetradic
#4E2790 #902734 #699027 #279082
square
#4E2790 #902734 #699027 #279082
split-complementary
#4E2790 #908227 #349027
monochromatic
#1A0D30 #341A60 #4E2790 #6834C0 #8A5ED3

Accessibility & contrast

On white

10.41
#4E2790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E2790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2790
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2790#FFFFFF#000000##FFFFFF
##4E27901.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004193
Deuteranopia (green-blind)
#003E8E
Tritanopia (blue-blind)
#3B4259
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2790;
/* rgb */ color: rgb(78, 39, 144);
/* oklch */ color: oklch(38.9% 0.162 294.7);
Tailwind
colors: {
  custom: {
    50: '#8665b1',
    500: '#4e2790',
    950: '#000000',
  },
}
SCSS
$custom: #4e2790;
$custom-light: #8665b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2790",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 262.286,
    "s": 57.377,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38902,
    "c": 0.1619,
    "h": 294.7
  },
  "luminance": 0.05084
}

Semantic roles & 50–950 ramp

primary
#4E2790
secondary
#96B95A
accent
#E147A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2790

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

Preview Lab → · Contrast checker → · Palette generator →

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