#4E35B1#4E35B1

#4E35B1 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.185 H 285.0°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#4E35B1
RGBrgb(78, 53, 177)
HSLhsl(252, 54%, 45%)
HSVhsv(252, 70%, 69%)
CMYKcmyk(55.9%, 70.1%, 0%, 30.6%)
CIE-LABlab(32.57, 43.89, -62.26)
CIE-LCHlch(32.57, 76.17, 305.19°)
OKLaboklab(43.78% 0.0481 -0.1791)
OKLCHoklch(43.78% 0.185 285)
XYZxyz(12.3484, 7.3395, 42.3524)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E35B1 #98B135
analogous
#355AB1 #4E35B1 #8C35B1
triadic
#4E35B1 #B14E35 #35B14E
tetradic
#4E35B1 #B1355A #98B135 #35B18C
square
#4E35B1 #B1355A #98B135 #35B18C
split-complementary
#4E35B1 #B18C35 #5AB135
monochromatic
#241953 #392782 #4E35B1 #6E57CD #9786DB

Accessibility & contrast

On white

8.51
#4E35B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4E35B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E35B1
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E35B1#FFFFFF#000000##FFFFFF
##4E35B11.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#0049AF
Tritanopia (blue-blind)
#20566F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e35b1;
/* rgb */ color: rgb(78, 53, 177);
/* oklch */ color: oklch(43.8% 0.185 285.0);
Tailwind
colors: {
  custom: {
    50: '#8a6ec9',
    500: '#4e35b1',
    950: '#000000',
  },
}
SCSS
$custom: #4e35b1;
$custom-light: #8a6ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e35b1",
  "rgb": {
    "r": 78,
    "g": 53,
    "b": 177
  },
  "hsl": {
    "h": 252.097,
    "s": 53.913,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43775,
    "c": 0.18543,
    "h": 285
  },
  "luminance": 0.0734
}

Semantic roles & 50–950 ramp

primary
#4E35B1
secondary
#B6C47D
accent
#DD4BC0
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E35B1

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

Preview Lab → · Contrast checker → · Palette generator →

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