#4E33A2#4E33A2

#4E33A2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.169 H 288.1°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#4E33A2
RGBrgb(78, 51, 162)
HSLhsl(255, 52%, 42%)
HSVhsv(255, 69%, 64%)
CMYKcmyk(51.9%, 68.5%, 0%, 36.5%)
CIE-LABlab(30.87, 40.50, -56.04)
CIE-LCHlch(30.87, 69.14, 305.86°)
OKLaboklab(42.16% 0.0524 -0.1608)
OKLCHoklch(42.16% 0.169 288.1)
XYZxyz(10.8454, 6.5955, 34.8770)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E33A2 #87A233
analogous
#334FA2 #4E33A2 #8633A2
triadic
#4E33A2 #A24E33 #33A24E
tetradic
#4E33A2 #A2334F #87A233 #33A286
square
#4E33A2 #A2334F #87A233 #33A286
split-complementary
#4E33A2 #A28633 #4FA233
monochromatic
#211645 #382473 #4E33A2 #6A4CC7 #907AD5

Accessibility & contrast

On white

9.05
#4E33A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4E33A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E33A2
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E33A2#FFFFFF#000000##FFFFFF
##4E33A21.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#2F4F66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e33a2;
/* rgb */ color: rgb(78, 51, 162);
/* oklch */ color: oklch(42.2% 0.169 288.1);
Tailwind
colors: {
  custom: {
    50: '#886dbe',
    500: '#4e33a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e33a2;
$custom-light: #886dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e33a2",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 162
  },
  "hsl": {
    "h": 254.595,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42158,
    "c": 0.16916,
    "h": 288.1
  },
  "luminance": 0.06596
}

Semantic roles & 50–950 ramp

primary
#4E33A2
secondary
#ACBE73
accent
#DC4CB9
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E33A2

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

Preview Lab → · Contrast checker → · Palette generator →

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