#4E33A5#4E33A5

#4E33A5 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.173 H 287.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#4E33A5
RGBrgb(78, 51, 165)
HSLhsl(254, 53%, 42%)
HSVhsv(254, 69%, 65%)
CMYKcmyk(52.7%, 69.1%, 0%, 35.3%)
CIE-LABlab(31.12, 41.40, -57.43)
CIE-LCHlch(31.12, 70.80, 305.78°)
OKLaboklab(42.42% 0.052 -0.1649)
OKLCHoklch(42.42% 0.173 287.5)
XYZxyz(11.1152, 6.7034, 36.2982)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E33A5 #8AA533
analogous
#3351A5 #4E33A5 #8733A5
triadic
#4E33A5 #A54E33 #33A54E
tetradic
#4E33A5 #A53351 #8AA533 #33A587
square
#4E33A5 #A53351 #8AA533 #33A587
split-complementary
#4E33A5 #A58733 #51A533
monochromatic
#221648 #382576 #4E33A5 #6A4DC8 #917CD6

Accessibility & contrast

On white

8.97
#4E33A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4E33A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E33A5
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E33A5#FFFFFF#000000##FFFFFF
##4E33A51.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#2D5068
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e33a5;
/* rgb */ color: rgb(78, 51, 165);
/* oklch */ color: oklch(42.4% 0.173 287.5);
Tailwind
colors: {
  custom: {
    50: '#886dc1',
    500: '#4e33a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e33a5;
$custom-light: #886dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e33a5",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 165
  },
  "hsl": {
    "h": 254.211,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4242,
    "c": 0.17292,
    "h": 287.5
  },
  "luminance": 0.06704
}

Semantic roles & 50–950 ramp

primary
#4E33A5
secondary
#AEBF75
accent
#DC4CBA
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E33A5

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

Preview Lab → · Contrast checker → · Palette generator →

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