#4E309A#4E309A

#4E309A is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.163 H 290.4°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#4E309A
RGBrgb(78, 48, 154)
HSLhsl(257, 52%, 40%)
HSVhsv(257, 69%, 60%)
CMYKcmyk(49.4%, 68.8%, 0%, 39.6%)
CIE-LABlab(29.58, 39.82, -53.28)
CIE-LCHlch(29.58, 66.51, 306.77°)
OKLaboklab(41.03% 0.0567 -0.1527)
OKLCHoklch(41.03% 0.163 290.4)
XYZxyz(10.0299, 6.0663, 31.2080)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E309A #7C9A30
analogous
#30479A #4E309A #83309A
triadic
#4E309A #9A4E30 #309A4E
tetradic
#4E309A #9A3047 #7C9A30 #309A83
square
#4E309A #9A3047 #7C9A30 #309A83
split-complementary
#4E309A #9A8330 #479A30
monochromatic
#1F133D #36216B #4E309A #6743C4 #8D72D3

Accessibility & contrast

On white

9.49
#4E309A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E309A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E309A
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E309A#FFFFFF#000000##FFFFFF
##4E309A1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#354A61
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e309a;
/* rgb */ color: rgb(78, 48, 154);
/* oklch */ color: oklch(41.0% 0.163 290.4);
Tailwind
colors: {
  custom: {
    50: '#876ab9',
    500: '#4e309a',
    950: '#000000',
  },
}
SCSS
$custom: #4e309a;
$custom-light: #876ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e309a",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 256.981,
    "s": 52.475,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41025,
    "c": 0.16291,
    "h": 290.4
  },
  "luminance": 0.06067
}

Semantic roles & 50–950 ramp

primary
#4E309A
secondary
#A4BB6B
accent
#DC4CB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E309A

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

Preview Lab → · Contrast checker → · Palette generator →

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