#4E30A1#4E30A1

#4E30A1 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.172 H 288.9°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#4E30A1
RGBrgb(78, 48, 161)
HSLhsl(256, 54%, 41%)
HSVhsv(256, 70%, 63%)
CMYKcmyk(51.6%, 70.2%, 0%, 36.9%)
CIE-LABlab(30.17, 41.88, -56.57)
CIE-LCHlch(30.17, 70.38, 306.51°)
OKLaboklab(41.63% 0.0555 -0.1624)
OKLCHoklch(41.63% 0.172 288.9)
XYZxyz(10.6300, 6.3063, 34.3684)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30A1 #83A130
analogous
#304AA1 #4E30A1 #8630A1
triadic
#4E30A1 #A14E30 #30A14E
tetradic
#4E30A1 #A1304A #83A130 #30A186
square
#4E30A1 #A1304A #83A130 #30A186
split-complementary
#4E30A1 #A18630 #4AA130
monochromatic
#201443 #372272 #4E30A1 #6946C8 #8F75D6

Accessibility & contrast

On white

9.29
#4E30A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4E30A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E30A1
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30A1#FFFFFF#000000##FFFFFF
##4E30A11.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#304D65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e30a1;
/* rgb */ color: rgb(78, 48, 161);
/* oklch */ color: oklch(41.6% 0.172 288.9);
Tailwind
colors: {
  custom: {
    50: '#886bbe',
    500: '#4e30a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e30a1;
$custom-light: #886bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30a1",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 161
  },
  "hsl": {
    "h": 255.929,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41634,
    "c": 0.1716,
    "h": 288.9
  },
  "luminance": 0.06307
}

Semantic roles & 50–950 ramp

primary
#4E30A1
secondary
#A9BE6F
accent
#DD4AB6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E30A1

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

Preview Lab → · Contrast checker → · Palette generator →

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