#4E35A0#4E35A0

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

Color values

HEX#4E35A0
RGBrgb(78, 53, 160)
HSLhsl(254, 50%, 42%)
HSVhsv(254, 67%, 63%)
CMYKcmyk(51.2%, 66.9%, 0%, 37.3%)
CIE-LABlab(31.12, 38.75, -54.41)
CIE-LCHlch(31.12, 66.80, 305.46°)
OKLaboklab(42.29% 0.0507 -0.1561)
OKLCHoklch(42.29% 0.164 288)
XYZxyz(10.7583, 6.7035, 33.9779)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E35A0 #87A035
analogous
#3551A0 #4E35A0 #8435A0
triadic
#4E35A0 #A04E35 #35A04E
tetradic
#4E35A0 #A03551 #87A035 #35A084
square
#4E35A0 #A03551 #87A035 #35A084
split-complementary
#4E35A0 #A08435 #51A035
monochromatic
#211744 #382672 #4E35A0 #6A4EC4 #907CD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E35A0#FFFFFF#000000##FFFFFF
##4E35A01.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)
#004CA3
Deuteranopia (green-blind)
#00469E
Tritanopia (blue-blind)
#304F66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e35a0;
/* rgb */ color: rgb(78, 53, 160);
/* oklch */ color: oklch(42.3% 0.164 288.0);
Tailwind
colors: {
  custom: {
    50: '#876ebd',
    500: '#4e35a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e35a0;
$custom-light: #876ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e35a0",
  "rgb": {
    "r": 78,
    "g": 53,
    "b": 160
  },
  "hsl": {
    "h": 254.019,
    "s": 50.235,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4229,
    "c": 0.1641,
    "h": 288
  },
  "luminance": 0.06704
}

Semantic roles & 50–950 ramp

primary
#4E35A0
secondary
#ACBC74
accent
#DA4EB9
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E35A0

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

Preview Lab → · Contrast checker → · Palette generator →

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