#4E2489#4E2489

#4E2489 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.157 H 297.2°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#4E2489
RGBrgb(78, 36, 137)
HSLhsl(265, 58%, 34%)
HSVhsv(265, 74%, 54%)
CMYKcmyk(43.1%, 73.7%, 0%, 46.3%)
CIE-LABlab(25.82, 41.43, -48.92)
CIE-LCHlch(25.82, 64.11, 310.26°)
OKLaboklab(37.9% 0.072 -0.1399)
OKLCHoklch(37.9% 0.157 297.2)
XYZxyz(8.2869, 4.6874, 24.1302)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2489 #5F8924
analogous
#242D89 #4E2489 #812489
triadic
#4E2489 #894E24 #24894E
tetradic
#4E2489 #89242D #5F8924 #248981
square
#4E2489 #89242D #5F8924 #248981
split-complementary
#4E2489 #898124 #2D8924
monochromatic
#170B28 #321759 #4E2489 #6A31B9 #8955D2

Accessibility & contrast

On white

10.84
#4E2489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E2489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2489
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2489#FFFFFF#000000##FFFFFF
##4E24891.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#003C87
Tritanopia (blue-blind)
#3F3D54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2489;
/* rgb */ color: rgb(78, 36, 137);
/* oklch */ color: oklch(37.9% 0.157 297.2);
Tailwind
colors: {
  custom: {
    50: '#8563ac',
    500: '#4e2489',
    950: '#000000',
  },
}
SCSS
$custom: #4e2489;
$custom-light: #8563ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2489",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 137
  },
  "hsl": {
    "h": 264.95,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37901,
    "c": 0.1573,
    "h": 297.2
  },
  "luminance": 0.04688
}

Semantic roles & 50–950 ramp

primary
#4E2489
secondary
#8DB752
accent
#E246A1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E2489

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

Preview Lab → · Contrast checker → · Palette generator →

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