#4E2885#4E2885

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

Color values

HEX#4E2885
RGBrgb(78, 40, 133)
HSLhsl(265, 54%, 34%)
HSVhsv(265, 70%, 52%)
CMYKcmyk(41.4%, 69.9%, 0%, 47.8%)
CIE-LABlab(26.25, 38.23, -45.73)
CIE-LCHlch(26.25, 59.61, 309.90°)
OKLaboklab(38.1% 0.0685 -0.1305)
OKLCHoklch(38.1% 0.147 297.7)
XYZxyz(8.1332, 4.8306, 22.6896)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2885 #5F8528
analogous
#283185 #4E2885 #7D2885
triadic
#4E2885 #854E28 #28854E
tetradic
#4E2885 #852831 #5F8528 #28857D
square
#4E2885 #852831 #5F8528 #28857D
split-complementary
#4E2885 #857D28 #318528
monochromatic
#170C27 #321A56 #4E2885 #6A36B4 #895ACD

Accessibility & contrast

On white

10.68
#4E2885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4E2885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2885
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2885#FFFFFF#000000##FFFFFF
##4E28851.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#413E53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2885;
/* rgb */ color: rgb(78, 40, 133);
/* oklch */ color: oklch(38.1% 0.147 297.7);
Tailwind
colors: {
  custom: {
    50: '#8565a9',
    500: '#4e2885',
    950: '#000000',
  },
}
SCSS
$custom: #4e2885;
$custom-light: #8565a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2885",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 264.516,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38098,
    "c": 0.1474,
    "h": 297.7
  },
  "luminance": 0.04831
}

Semantic roles & 50–950 ramp

primary
#4E2885
secondary
#8DB356
accent
#DD4BA1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2885

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

Preview Lab → · Contrast checker → · Palette generator →

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