#4E35B2#4E35B2

#4E35B2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.9% C 0.187 H 284.9°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#4E35B2
RGBrgb(78, 53, 178)
HSLhsl(252, 54%, 45%)
HSVhsv(252, 70%, 70%)
CMYKcmyk(56.2%, 70.2%, 0%, 30.2%)
CIE-LABlab(32.66, 44.20, -62.71)
CIE-LCHlch(32.66, 76.72, 305.18°)
OKLaboklab(43.86% 0.0479 -0.1804)
OKLCHoklch(43.86% 0.187 284.9)
XYZxyz(12.4484, 7.3795, 42.8793)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E35B2 #99B235
analogous
#355AB2 #4E35B2 #8C35B2
triadic
#4E35B2 #B24E35 #35B24E
tetradic
#4E35B2 #B2355A #99B235 #35B28C
square
#4E35B2 #B2355A #99B235 #35B28C
split-complementary
#4E35B2 #B28C35 #5AB235
monochromatic
#251954 #392783 #4E35B2 #6F57CD #9786DB

Accessibility & contrast

On white

8.48
#4E35B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#4E35B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E35B2
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E35B2#FFFFFF#000000##FFFFFF
##4E35B21.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#1E566F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e35b2;
/* rgb */ color: rgb(78, 53, 178);
/* oklch */ color: oklch(43.9% 0.187 284.9);
Tailwind
colors: {
  custom: {
    50: '#8a6eca',
    500: '#4e35b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e35b2;
$custom-light: #8a6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e35b2",
  "rgb": {
    "r": 78,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 252,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43865,
    "c": 0.18666,
    "h": 284.9
  },
  "luminance": 0.0738
}

Semantic roles & 50–950 ramp

primary
#4E35B2
secondary
#B7C57E
accent
#DD4AC0
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E35B2

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

Preview Lab → · Contrast checker → · Palette generator →

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