#4E30A2#4E30A2

#4E30A2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.173 H 288.7°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#4E30A2
RGBrgb(78, 48, 162)
HSLhsl(256, 54%, 41%)
HSVhsv(256, 70%, 64%)
CMYKcmyk(51.9%, 70.4%, 0%, 36.5%)
CIE-LABlab(30.26, 42.17, -57.03)
CIE-LCHlch(30.26, 70.93, 306.48°)
OKLaboklab(41.72% 0.0553 -0.1637)
OKLCHoklch(41.72% 0.173 288.7)
XYZxyz(10.7185, 6.3418, 34.8347)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30A2 #84A230
analogous
#304BA2 #4E30A2 #8730A2
triadic
#4E30A2 #A24E30 #30A24E
tetradic
#4E30A2 #A2304B #84A230 #30A287
square
#4E30A2 #A2304B #84A230 #30A287
split-complementary
#4E30A2 #A28730 #4BA230
monochromatic
#211444 #372273 #4E30A2 #6947C8 #8F76D6

Accessibility & contrast

On white

9.26
#4E30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E30A2
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30A2#FFFFFF#000000##FFFFFF
##4E30A21.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#2F4D65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e30a2;
/* rgb */ color: rgb(78, 48, 162);
/* oklch */ color: oklch(41.7% 0.173 288.7);
Tailwind
colors: {
  custom: {
    50: '#886bbe',
    500: '#4e30a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e30a2;
$custom-light: #886bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30a2",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 255.789,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41722,
    "c": 0.17283,
    "h": 288.7
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#4E30A2
secondary
#AABE6F
accent
#DE4AB7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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