#4E34AA#4E34AA

#4E34AA is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.0% C 0.178 H 286.4°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#4E34AA
RGBrgb(78, 52, 170)
HSLhsl(253, 53%, 44%)
HSVhsv(253, 69%, 67%)
CMYKcmyk(54.1%, 69.4%, 0%, 33.3%)
CIE-LABlab(31.76, 42.34, -59.40)
CIE-LCHlch(31.76, 72.95, 305.48°)
OKLaboklab(43.01% 0.0502 -0.1707)
OKLCHoklch(43.01% 0.178 286.4)
XYZxyz(11.6234, 6.9774, 38.7567)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34AA #90AA34
analogous
#3455AA #4E34AA #8934AA
triadic
#4E34AA #AA4E34 #34AA4E
tetradic
#4E34AA #AA3455 #90AA34 #34AA89
square
#4E34AA #AA3455 #90AA34 #34AA89
split-complementary
#4E34AA #AA8934 #55AA34
monochromatic
#23174C #38267B #4E34AA #6C51CA #9480D8

Accessibility & contrast

On white

8.77
#4E34AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4E34AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34AA
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34AA#FFFFFF#000000##FFFFFF
##4E34AA1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#28526B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e34aa;
/* rgb */ color: rgb(78, 52, 170);
/* oklch */ color: oklch(43.0% 0.178 286.4);
Tailwind
colors: {
  custom: {
    50: '#896ec4',
    500: '#4e34aa',
    950: '#000000',
  },
}
SCSS
$custom: #4e34aa;
$custom-light: #896ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34aa",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 253.22,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43006,
    "c": 0.17794,
    "h": 286.4
  },
  "luminance": 0.06978
}

Semantic roles & 50–950 ramp

primary
#4E34AA
secondary
#B1C178
accent
#DD4BBD
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4E34AA

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

Preview Lab → · Contrast checker → · Palette generator →

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