#4E307A#4E307A

#4E307A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.122 H 299.3°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4E307A
RGBrgb(78, 48, 122)
HSLhsl(264, 44%, 33%)
HSVhsv(264, 61%, 48%)
CMYKcmyk(36.1%, 60.7%, 0%, 52.2%)
CIE-LABlab(27.13, 30.56, -37.40)
CIE-LCHlch(27.13, 48.29, 309.26°)
OKLaboklab(38.47% 0.0596 -0.106)
OKLCHoklch(38.47% 0.122 299.3)
XYZxyz(7.7108, 5.1387, 18.9942)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E307A #5C7A30
analogous
#30377A #4E307A #73307A
triadic
#4E307A #7A4E30 #307A4E
tetradic
#4E307A #7A3037 #5C7A30 #307A73
square
#4E307A #7A3037 #5C7A30 #307A73
split-complementary
#4E307A #7A7330 #377A30
monochromatic
#160D22 #321F4E #4E307A #6A41A6 #8963C2

Accessibility & contrast

On white

10.36
#4E307A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E307A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E307A
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E307A#FFFFFF#000000##FFFFFF
##4E307A1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09407C
Deuteranopia (green-blind)
#183F78
Tritanopia (blue-blind)
#443F50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e307a;
/* rgb */ color: rgb(78, 48, 122);
/* oklch */ color: oklch(38.5% 0.122 299.3);
Tailwind
colors: {
  custom: {
    50: '#836aa1',
    500: '#4e307a',
    950: '#000000',
  },
}
SCSS
$custom: #4e307a;
$custom-light: #836aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e307a",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 122
  },
  "hsl": {
    "h": 264.324,
    "s": 43.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38474,
    "c": 0.12161,
    "h": 299.3
  },
  "luminance": 0.05139
}

Semantic roles & 50–950 ramp

primary
#4E307A
secondary
#8AA95D
accent
#D355A0
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4E307A

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

Preview Lab → · Contrast checker → · Palette generator →

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