#4E30A0#4E30A0

#4E30A0 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.170 H 289.1°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#4E30A0
RGBrgb(78, 48, 160)
HSLhsl(256, 54%, 41%)
HSVhsv(256, 70%, 63%)
CMYKcmyk(51.2%, 70%, 0%, 37.3%)
CIE-LABlab(30.09, 41.58, -56.10)
CIE-LCHlch(30.09, 69.83, 306.55°)
OKLaboklab(41.55% 0.0557 -0.161)
OKLCHoklch(41.55% 0.17 289.1)
XYZxyz(10.5422, 6.2712, 33.9059)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30A0 #82A030
analogous
#304AA0 #4E30A0 #8630A0
triadic
#4E30A0 #A04E30 #30A04E
tetradic
#4E30A0 #A0304A #82A030 #30A086
square
#4E30A0 #A0304A #82A030 #30A086
split-complementary
#4E30A0 #A08630 #4AA030
monochromatic
#201442 #372271 #4E30A0 #6846C7 #8F75D6

Accessibility & contrast

On white

9.32
#4E30A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E30A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E30A0
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30A0#FFFFFF#000000##FFFFFF
##4E30A01.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#314D64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e30a0;
/* rgb */ color: rgb(78, 48, 160);
/* oklch */ color: oklch(41.5% 0.170 289.1);
Tailwind
colors: {
  custom: {
    50: '#886bbd',
    500: '#4e30a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e30a0;
$custom-light: #886bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30a0",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 160
  },
  "hsl": {
    "h": 256.071,
    "s": 53.846,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41546,
    "c": 0.17036,
    "h": 289.1
  },
  "luminance": 0.06272
}

Semantic roles & 50–950 ramp

primary
#4E30A0
secondary
#A8BE6E
accent
#DD4BB6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E30A0

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

Preview Lab → · Contrast checker → · Palette generator →

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