#4E338A#4E338A

#4E338A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.138 H 293.5°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4E338A
RGBrgb(78, 51, 138)
HSLhsl(259, 46%, 37%)
HSVhsv(259, 63%, 54%)
CMYKcmyk(43.5%, 63%, 0%, 45.9%)
CIE-LABlab(28.96, 33.36, -44.45)
CIE-LCHlch(28.96, 55.58, 306.89°)
OKLaboklab(40.18% 0.0551 -0.1268)
OKLCHoklch(40.18% 0.138 293.5)
XYZxyz(8.9119, 5.8221, 24.6941)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E338A #6F8A33
analogous
#33438A #4E338A #7A338A
triadic
#4E338A #8A4E33 #338A4E
tetradic
#4E338A #8A3343 #6F8A33 #338A7A
square
#4E338A #8A3343 #6F8A33 #338A7A
split-complementary
#4E338A #8A7A33 #438A33
monochromatic
#1B1231 #35225D #4E338A #6744B7 #8A6EC9

Accessibility & contrast

On white

9.70
#4E338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4E338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E338A
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E338A#FFFFFF#000000##FFFFFF
##4E338A1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#004388
Tritanopia (blue-blind)
#3E4759
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e338a;
/* rgb */ color: rgb(78, 51, 138);
/* oklch */ color: oklch(40.2% 0.138 293.5);
Tailwind
colors: {
  custom: {
    50: '#846cad',
    500: '#4e338a',
    950: '#000000',
  },
}
SCSS
$custom: #4e338a;
$custom-light: #846cad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e338a",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 258.621,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4018,
    "c": 0.13824,
    "h": 293.5
  },
  "luminance": 0.05822
}

Semantic roles & 50–950 ramp

primary
#4E338A
secondary
#9AB167
accent
#D652AD
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E338A

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

Preview Lab → · Contrast checker → · Palette generator →

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