#4E35A2#4E35A2

#4E35A2 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.5% C 0.167 H 287.6°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#4E35A2
RGBrgb(78, 53, 162)
HSLhsl(254, 51%, 42%)
HSVhsv(254, 67%, 64%)
CMYKcmyk(51.9%, 67.3%, 0%, 36.5%)
CIE-LABlab(31.29, 39.36, -55.35)
CIE-LCHlch(31.29, 67.92, 305.41°)
OKLaboklab(42.46% 0.0505 -0.1588)
OKLCHoklch(42.46% 0.167 287.6)
XYZxyz(10.9347, 6.7740, 34.9068)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E35A2 #89A235
analogous
#3553A2 #4E35A2 #8435A2
triadic
#4E35A2 #A24E35 #35A24E
tetradic
#4E35A2 #A23553 #89A235 #35A284
square
#4E35A2 #A23553 #89A235 #35A284
split-complementary
#4E35A2 #A28435 #53A235
monochromatic
#221746 #382674 #4E35A2 #6A4FC5 #917DD4

Accessibility & contrast

On white

8.92
#4E35A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4E35A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E35A2
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E35A2#FFFFFF#000000##FFFFFF
##4E35A21.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#2F5067
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e35a2;
/* rgb */ color: rgb(78, 53, 162);
/* oklch */ color: oklch(42.5% 0.167 287.6);
Tailwind
colors: {
  custom: {
    50: '#876ebe',
    500: '#4e35a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e35a2;
$custom-light: #876ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e35a2",
  "rgb": {
    "r": 78,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 253.761,
    "s": 50.698,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4246,
    "c": 0.16665,
    "h": 287.6
  },
  "luminance": 0.06775
}

Semantic roles & 50–950 ramp

primary
#4E35A2
secondary
#ADBD75
accent
#DA4EBA
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E35A2

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

Preview Lab → · Contrast checker → · Palette generator →

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