#4E2585#4E2585

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

Color values

HEX#4E2585
RGBrgb(78, 37, 133)
HSLhsl(266, 56%, 33%)
HSVhsv(266, 72%, 52%)
CMYKcmyk(41.4%, 72.2%, 0%, 47.8%)
CIE-LABlab(25.67, 39.83, -46.67)
CIE-LCHlch(25.67, 61.35, 310.48°)
OKLaboklab(37.69% 0.0718 -0.1332)
OKLCHoklch(37.69% 0.151 298.3)
XYZxyz(8.0360, 4.6362, 22.6572)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2585 #5C8525
analogous
#252C85 #4E2585 #7E2585
triadic
#4E2585 #854E25 #25854E
tetradic
#4E2585 #85252C #5C8525 #25857E
square
#4E2585 #85252C #5C8525 #25857E
split-complementary
#4E2585 #857E25 #2C8525
monochromatic
#160A25 #321855 #4E2585 #6A32B5 #8955D0

Accessibility & contrast

On white

10.90
#4E2585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2585
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2585#FFFFFF#000000##FFFFFF
##4E25851.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#413C52
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2585;
/* rgb */ color: rgb(78, 37, 133);
/* oklch */ color: oklch(37.7% 0.151 298.3);
Tailwind
colors: {
  custom: {
    50: '#8563a9',
    500: '#4e2585',
    950: '#000000',
  },
}
SCSS
$custom: #4e2585;
$custom-light: #8563a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2585",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 133
  },
  "hsl": {
    "h": 265.625,
    "s": 56.471,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37687,
    "c": 0.15134,
    "h": 298.3
  },
  "luminance": 0.04636
}

Semantic roles & 50–950 ramp

primary
#4E2585
secondary
#8AB452
accent
#E0489F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4E2585

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

Preview Lab → · Contrast checker → · Palette generator →

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