#4E2388#4E2388

#4E2388 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.157 H 297.7°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#4E2388
RGBrgb(78, 35, 136)
HSLhsl(266, 59%, 34%)
HSVhsv(266, 74%, 53%)
CMYKcmyk(42.6%, 74.3%, 0%, 46.7%)
CIE-LABlab(25.56, 41.66, -48.73)
CIE-LCHlch(25.56, 64.11, 310.53°)
OKLaboklab(37.69% 0.0732 -0.1393)
OKLCHoklch(37.69% 0.157 297.7)
XYZxyz(8.1857, 4.5992, 23.7442)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2388 #5D8823
analogous
#232A88 #4E2388 #802388
triadic
#4E2388 #884E23 #23884E
tetradic
#4E2388 #88232A #5D8823 #238880
square
#4E2388 #88232A #5D8823 #238880
split-complementary
#4E2388 #888023 #2A8823
monochromatic
#160A27 #321657 #4E2388 #6A30B9 #8953D3

Accessibility & contrast

On white

10.94
#4E2388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4E2388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2388
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2388#FFFFFF#000000##FFFFFF
##4E23881.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2388;
/* rgb */ color: rgb(78, 35, 136);
/* oklch */ color: oklch(37.7% 0.157 297.7);
Tailwind
colors: {
  custom: {
    50: '#8562ac',
    500: '#4e2388',
    950: '#000000',
  },
}
SCSS
$custom: #4e2388;
$custom-light: #8562ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2388",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 265.545,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37687,
    "c": 0.15736,
    "h": 297.7
  },
  "luminance": 0.04599
}

Semantic roles & 50–950 ramp

primary
#4E2388
secondary
#8BB750
accent
#E246A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E2388

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

Preview Lab → · Contrast checker → · Palette generator →

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