#4E2DA5#4E2DA5

#4E2DA5 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.180 H 288.6°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#4E2DA5
RGBrgb(78, 45, 165)
HSLhsl(257, 57%, 41%)
HSVhsv(257, 73%, 65%)
CMYKcmyk(52.7%, 72.7%, 0%, 35.3%)
CIE-LABlab(29.94, 44.67, -59.36)
CIE-LCHlch(29.94, 74.29, 306.96°)
OKLaboklab(41.58% 0.0574 -0.1706)
OKLCHoklch(41.58% 0.18 288.6)
XYZxyz(10.8698, 6.2126, 36.2164)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2DA5 #84A52D
analogous
#2D48A5 #4E2DA5 #8A2DA5
triadic
#4E2DA5 #A54E2D #2DA54E
tetradic
#4E2DA5 #A52D48 #84A52D #2DA58A
square
#4E2DA5 #A52D48 #84A52D #2DA58A
split-complementary
#4E2DA5 #A58A2D #48A52D
monochromatic
#211345 #372075 #4E2DA5 #6943CC #8F73D9

Accessibility & contrast

On white

9.36
#4E2DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4E2DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2DA5
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2DA5#FFFFFF#000000##FFFFFF
##4E2DA51.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#2D4D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2da5;
/* rgb */ color: rgb(78, 45, 165);
/* oklch */ color: oklch(41.6% 0.180 288.6);
Tailwind
colors: {
  custom: {
    50: '#8969c1',
    500: '#4e2da5',
    950: '#000000',
  },
}
SCSS
$custom: #4e2da5;
$custom-light: #8969c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2da5",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 256.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41579,
    "c": 0.17996,
    "h": 288.6
  },
  "luminance": 0.06213
}

Semantic roles & 50–950 ramp

primary
#4E2DA5
secondary
#AAC16D
accent
#E047B6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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