#4E33A1#4E33A1

#4E33A1 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.168 H 288.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#4E33A1
RGBrgb(78, 51, 161)
HSLhsl(255, 52%, 42%)
HSVhsv(255, 68%, 63%)
CMYKcmyk(51.6%, 68.3%, 0%, 36.9%)
CIE-LABlab(30.78, 40.20, -55.57)
CIE-LCHlch(30.78, 68.59, 305.88°)
OKLaboklab(42.07% 0.0526 -0.1594)
OKLCHoklch(42.07% 0.168 288.3)
XYZxyz(10.7569, 6.5601, 34.4107)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E33A1 #86A133
analogous
#334FA1 #4E33A1 #8533A1
triadic
#4E33A1 #A14E33 #33A14E
tetradic
#4E33A1 #A1334F #86A133 #33A185
square
#4E33A1 #A1334F #86A133 #33A185
split-complementary
#4E33A1 #A18533 #4FA133
monochromatic
#211644 #372473 #4E33A1 #694BC6 #907AD5

Accessibility & contrast

On white

9.08
#4E33A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4E33A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E33A1
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E33A1#FFFFFF#000000##FFFFFF
##4E33A11.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#304F66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e33a1;
/* rgb */ color: rgb(78, 51, 161);
/* oklch */ color: oklch(42.1% 0.168 288.3);
Tailwind
colors: {
  custom: {
    50: '#876dbe',
    500: '#4e33a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e33a1;
$custom-light: #876dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e33a1",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 161
  },
  "hsl": {
    "h": 254.727,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42072,
    "c": 0.1679,
    "h": 288.3
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#4E33A1
secondary
#ABBD72
accent
#DB4CB8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E33A1

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

Preview Lab → · Contrast checker → · Palette generator →

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