#4E30A7#4E30A7

#4E30A7 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.179 H 287.7°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#4E30A7
RGBrgb(78, 48, 167)
HSLhsl(255, 55%, 42%)
HSVhsv(255, 71%, 65%)
CMYKcmyk(53.3%, 71.3%, 0%, 34.5%)
CIE-LABlab(30.70, 43.65, -59.33)
CIE-LCHlch(30.70, 73.66, 306.34°)
OKLaboklab(42.17% 0.0544 -0.1705)
OKLCHoklch(42.17% 0.179 287.7)
XYZxyz(11.1718, 6.5231, 37.2221)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30A7 #89A730
analogous
#304EA7 #4E30A7 #8A30A7
triadic
#4E30A7 #A74E30 #30A74E
tetradic
#4E30A7 #A7304E #89A730 #30A78A
square
#4E30A7 #A7304E #89A730 #30A78A
split-complementary
#4E30A7 #A78A30 #4EA730
monochromatic
#221548 #382277 #4E30A7 #6A49CB #9179D8

Accessibility & contrast

On white

9.11
#4E30A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E30A7
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30A7#FFFFFF#000000##FFFFFF
##4E30A71.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#2B4F68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e30a7;
/* rgb */ color: rgb(78, 48, 167);
/* oklch */ color: oklch(42.2% 0.179 287.7);
Tailwind
colors: {
  custom: {
    50: '#896bc2',
    500: '#4e30a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e30a7;
$custom-light: #896bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30a7",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 167
  },
  "hsl": {
    "h": 255.126,
    "s": 55.349,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42169,
    "c": 0.17895,
    "h": 287.7
  },
  "luminance": 0.06524
}

Semantic roles & 50–950 ramp

primary
#4E30A7
secondary
#ADC172
accent
#DF49B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E30A7

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

Preview Lab → · Contrast checker → · Palette generator →

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