#4E3098#4E3098

#4E3098 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.160 H 290.8°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#4E3098
RGBrgb(78, 48, 152)
HSLhsl(257, 52%, 39%)
HSVhsv(257, 68%, 60%)
CMYKcmyk(48.7%, 68.4%, 0%, 40.4%)
CIE-LABlab(29.41, 39.23, -52.33)
CIE-LCHlch(29.41, 65.40, 306.86°)
OKLaboklab(40.85% 0.057 -0.1499)
OKLCHoklch(40.85% 0.16 290.8)
XYZxyz(9.8647, 6.0002, 30.3381)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3098 #7A9830
analogous
#304698 #4E3098 #823098
triadic
#4E3098 #984E30 #30984E
tetradic
#4E3098 #983046 #7A9830 #309882
square
#4E3098 #983046 #7A9830 #309882
split-complementary
#4E3098 #988230 #469830
monochromatic
#1E133B #362169 #4E3098 #6742C3 #8D70D2

Accessibility & contrast

On white

9.54
#4E3098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4E3098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3098
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3098#FFFFFF#000000##FFFFFF
##4E30981.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#364A60
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3098;
/* rgb */ color: rgb(78, 48, 152);
/* oklch */ color: oklch(40.9% 0.160 290.8);
Tailwind
colors: {
  custom: {
    50: '#866ab7',
    500: '#4e3098',
    950: '#000000',
  },
}
SCSS
$custom: #4e3098;
$custom-light: #866ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3098",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 152
  },
  "hsl": {
    "h": 257.308,
    "s": 52,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40854,
    "c": 0.1604,
    "h": 290.8
  },
  "luminance": 0.06001
}

Semantic roles & 50–950 ramp

primary
#4E3098
secondary
#A3BA6A
accent
#DB4CB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3098

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

Preview Lab → · Contrast checker → · Palette generator →

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