#4E2688#4E2688

#4E2688 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.154 H 297.2°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#4E2688
RGBrgb(78, 38, 136)
HSLhsl(264, 56%, 34%)
HSVhsv(264, 72%, 53%)
CMYKcmyk(42.6%, 72.1%, 0%, 46.7%)
CIE-LABlab(26.11, 40.13, -47.83)
CIE-LCHlch(26.11, 62.44, 309.99°)
OKLaboklab(38.08% 0.0701 -0.1367)
OKLCHoklch(38.08% 0.154 297.2)
XYZxyz(8.2778, 4.7833, 23.7749)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2688 #608826
analogous
#262F88 #4E2688 #7F2688
triadic
#4E2688 #884E26 #26884E
tetradic
#4E2688 #88262F #608826 #26887F
square
#4E2688 #88262F #608826 #26887F
split-complementary
#4E2688 #887F26 #2F8826
monochromatic
#170B28 #331958 #4E2688 #6933B8 #8958D0

Accessibility & contrast

On white

10.73
#4E2688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E2688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2688
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2688#FFFFFF#000000##FFFFFF
##4E26881.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#3F3E54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2688;
/* rgb */ color: rgb(78, 38, 136);
/* oklch */ color: oklch(38.1% 0.154 297.2);
Tailwind
colors: {
  custom: {
    50: '#8564ab',
    500: '#4e2688',
    950: '#000000',
  },
}
SCSS
$custom: #4e2688;
$custom-light: #8564ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2688",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 136
  },
  "hsl": {
    "h": 264.49,
    "s": 56.322,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38076,
    "c": 0.15363,
    "h": 297.2
  },
  "luminance": 0.04784
}

Semantic roles & 50–950 ramp

primary
#4E2688
secondary
#8EB555
accent
#E048A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E2688

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

Preview Lab → · Contrast checker → · Palette generator →

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