#4E2097#4E2097

#4E2097 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.178 H 293.9°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#4E2097
RGBrgb(78, 32, 151)
HSLhsl(263, 65%, 36%)
HSVhsv(263, 79%, 59%)
CMYKcmyk(48.3%, 78.8%, 0%, 40.8%)
CIE-LABlab(26.41, 47.13, -56.63)
CIE-LCHlch(26.41, 73.67, 309.77°)
OKLaboklab(38.7% 0.072 -0.1625)
OKLCHoklch(38.7% 0.178 293.9)
XYZxyz(9.2428, 4.8868, 29.7284)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2097 #699720
analogous
#202E97 #4E2097 #892097
triadic
#4E2097 #974E20 #20974E
tetradic
#4E2097 #97202E #699720 #209789
square
#4E2097 #97202E #699720 #209789
split-complementary
#4E2097 #978920 #2E9720
monochromatic
#1A0B32 #341564 #4E2097 #682BC9 #8A56DB

Accessibility & contrast

On white

10.62
#4E2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4E2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2097
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2097#FFFFFF#000000##FFFFFF
##4E20971.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#38415B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2097;
/* rgb */ color: rgb(78, 32, 151);
/* oklch */ color: oklch(38.7% 0.178 293.9);
Tailwind
colors: {
  custom: {
    50: '#8761b7',
    500: '#4e2097',
    950: '#000000',
  },
}
SCSS
$custom: #4e2097;
$custom-light: #8761b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2097",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 263.193,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38699,
    "c": 0.1777,
    "h": 293.9
  },
  "luminance": 0.04887
}

Semantic roles & 50–950 ramp

primary
#4E2097
secondary
#96BF54
accent
#E840A7
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E2097

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

Preview Lab → · Contrast checker → · Palette generator →

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