#4E30A6#4E30A6

#4E30A6 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.178 H 287.9°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#4E30A6
RGBrgb(78, 48, 166)
HSLhsl(255, 55%, 42%)
HSVhsv(255, 71%, 65%)
CMYKcmyk(53%, 71.1%, 0%, 34.9%)
CIE-LABlab(30.61, 43.36, -58.88)
CIE-LCHlch(30.61, 73.12, 306.37°)
OKLaboklab(42.08% 0.0546 -0.1691)
OKLCHoklch(42.08% 0.178 287.9)
XYZxyz(11.0797, 6.4862, 36.7372)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30A6 #88A630
analogous
#304DA6 #4E30A6 #8930A6
triadic
#4E30A6 #A64E30 #30A64E
tetradic
#4E30A6 #A6304D #88A630 #30A689
square
#4E30A6 #A6304D #88A630 #30A689
split-complementary
#4E30A6 #A68930 #4DA630
monochromatic
#211547 #382277 #4E30A6 #6A49CA #9178D8

Accessibility & contrast

On white

9.14
#4E30A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4E30A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E30A6
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30A6#FFFFFF#000000##FFFFFF
##4E30A61.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#2C4F67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e30a6;
/* rgb */ color: rgb(78, 48, 166);
/* oklch */ color: oklch(42.1% 0.178 287.9);
Tailwind
colors: {
  custom: {
    50: '#886bc1',
    500: '#4e30a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e30a6;
$custom-light: #886bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30a6",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 166
  },
  "hsl": {
    "h": 255.254,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42079,
    "c": 0.17773,
    "h": 287.9
  },
  "luminance": 0.06487
}

Semantic roles & 50–950 ramp

primary
#4E30A6
secondary
#ACC071
accent
#DE49B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E30A6

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

Preview Lab → · Contrast checker → · Palette generator →

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