#4E2785#4E2785

#4E2785 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.149 H 297.9°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#4E2785
RGBrgb(78, 39, 133)
HSLhsl(265, 55%, 34%)
HSVhsv(265, 71%, 52%)
CMYKcmyk(41.4%, 70.7%, 0%, 47.8%)
CIE-LABlab(26.05, 38.77, -46.05)
CIE-LCHlch(26.05, 60.20, 310.10°)
OKLaboklab(37.96% 0.0696 -0.1314)
OKLCHoklch(37.96% 0.149 297.9)
XYZxyz(8.1000, 4.7641, 22.6786)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2785 #5E8527
analogous
#272F85 #4E2785 #7D2785
triadic
#4E2785 #854E27 #27854E
tetradic
#4E2785 #85272F #5E8527 #27857D
square
#4E2785 #85272F #5E8527 #27857D
split-complementary
#4E2785 #857D27 #2F8527
monochromatic
#160B26 #321956 #4E2785 #6A35B4 #8958CE

Accessibility & contrast

On white

10.75
#4E2785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2785
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2785#FFFFFF#000000##FFFFFF
##4E27851.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.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: #4e2785;
/* rgb */ color: rgb(78, 39, 133);
/* oklch */ color: oklch(38.0% 0.149 297.9);
Tailwind
colors: {
  custom: {
    50: '#8564a9',
    500: '#4e2785',
    950: '#000000',
  },
}
SCSS
$custom: #4e2785;
$custom-light: #8564a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2785",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 133
  },
  "hsl": {
    "h": 264.894,
    "s": 54.651,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37958,
    "c": 0.14874,
    "h": 297.9
  },
  "luminance": 0.04764
}

Semantic roles & 50–950 ramp

primary
#4E2785
secondary
#8CB355
accent
#DE4AA1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2785

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

Preview Lab → · Contrast checker → · Palette generator →

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