#4E2589#4E2589

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

Color values

HEX#4E2589
RGBrgb(78, 37, 137)
HSLhsl(265, 57%, 34%)
HSVhsv(265, 73%, 54%)
CMYKcmyk(43.1%, 73%, 0%, 46.3%)
CIE-LABlab(26.01, 40.92, -48.62)
CIE-LCHlch(26.01, 63.55, 310.08°)
OKLaboklab(38.03% 0.071 -0.139)
OKLCHoklch(38.03% 0.156 297.1)
XYZxyz(8.3176, 4.7488, 24.1404)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2589 #608925
analogous
#252E89 #4E2589 #802589
triadic
#4E2589 #894E25 #25894E
tetradic
#4E2589 #89252E #608925 #258980
square
#4E2589 #89252E #608925 #258980
split-complementary
#4E2589 #898025 #2E8925
monochromatic
#170B29 #331859 #4E2589 #6932B9 #8957D2

Accessibility & contrast

On white

10.77
#4E2589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4E2589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2589
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2589#FFFFFF#000000##FFFFFF
##4E25891.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2589;
/* rgb */ color: rgb(78, 37, 137);
/* oklch */ color: oklch(38.0% 0.156 297.1);
Tailwind
colors: {
  custom: {
    50: '#8563ac',
    500: '#4e2589',
    950: '#000000',
  },
}
SCSS
$custom: #4e2589;
$custom-light: #8563ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2589",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 137
  },
  "hsl": {
    "h": 264.6,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3803,
    "c": 0.15607,
    "h": 297.1
  },
  "luminance": 0.04749
}

Semantic roles & 50–950 ramp

primary
#4E2589
secondary
#8EB654
accent
#E147A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E2589

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

Preview Lab → · Contrast checker → · Palette generator →

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