#4E2498#4E2498

#4E2498 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.175 H 293.0°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#4E2498
RGBrgb(78, 36, 152)
HSLhsl(262, 62%, 37%)
HSVhsv(262, 76%, 60%)
CMYKcmyk(48.7%, 76.3%, 0%, 40.4%)
CIE-LABlab(27.15, 45.54, -56.02)
CIE-LCHlch(27.15, 72.20, 309.11°)
OKLaboklab(39.25% 0.0684 -0.1607)
OKLCHoklch(39.25% 0.175 293)
XYZxyz(9.4387, 5.1481, 30.1961)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2498 #6E9824
analogous
#243498 #4E2498 #882498
triadic
#4E2498 #984E24 #24984E
tetradic
#4E2498 #982434 #6E9824 #249888
square
#4E2498 #982434 #6E9824 #249888
split-complementary
#4E2498 #988824 #349824
monochromatic
#1B0D35 #351867 #4E2498 #6730C9 #8A5ED9

Accessibility & contrast

On white

10.35
#4E2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E2498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2498
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2498#FFFFFF#000000##FFFFFF
##4E24981.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#37435C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2498;
/* rgb */ color: rgb(78, 36, 152);
/* oklch */ color: oklch(39.2% 0.175 293.0);
Tailwind
colors: {
  custom: {
    50: '#8763b7',
    500: '#4e2498',
    950: '#000000',
  },
}
SCSS
$custom: #4e2498;
$custom-light: #8763b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2498",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 261.724,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39248,
    "c": 0.17466,
    "h": 293
  },
  "luminance": 0.05148
}

Semantic roles & 50–950 ramp

primary
#4E2498
secondary
#9ABE5A
accent
#E543AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2498

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

Preview Lab → · Contrast checker → · Palette generator →

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