#4E2488#4E2488

#4E2488 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.156 H 297.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#4E2488
RGBrgb(78, 36, 136)
HSLhsl(265, 58%, 34%)
HSVhsv(265, 74%, 53%)
CMYKcmyk(42.6%, 73.5%, 0%, 46.7%)
CIE-LABlab(25.74, 41.16, -48.43)
CIE-LCHlch(25.74, 63.56, 310.36°)
OKLaboklab(37.81% 0.0722 -0.1384)
OKLCHoklch(37.81% 0.156 297.5)
XYZxyz(8.2155, 4.6589, 23.7542)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2488 #5E8824
analogous
#242C88 #4E2488 #802488
triadic
#4E2488 #884E24 #24884E
tetradic
#4E2488 #88242C #5E8824 #248880
square
#4E2488 #88242C #5E8824 #248880
split-complementary
#4E2488 #888024 #2C8824
monochromatic
#160A27 #321758 #4E2488 #6A31B8 #8955D2

Accessibility & contrast

On white

10.87
#4E2488 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4E2488 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2488
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2488#FFFFFF#000000##FFFFFF
##4E24881.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#3F3D53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2488;
/* rgb */ color: rgb(78, 36, 136);
/* oklch */ color: oklch(37.8% 0.156 297.5);
Tailwind
colors: {
  custom: {
    50: '#8563ab',
    500: '#4e2488',
    950: '#000000',
  },
}
SCSS
$custom: #4e2488;
$custom-light: #8563ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2488",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 136
  },
  "hsl": {
    "h": 265.2,
    "s": 58.14,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37814,
    "c": 0.15614,
    "h": 297.5
  },
  "luminance": 0.04659
}

Semantic roles & 50–950 ramp

primary
#4E2488
secondary
#8CB652
accent
#E146A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E2488

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

Preview Lab → · Contrast checker → · Palette generator →

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