#4E3298#4E3298

#4E3298 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.2% C 0.158 H 290.4°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4E3298
RGBrgb(78, 50, 152)
HSLhsl(256, 50%, 40%)
HSVhsv(256, 67%, 60%)
CMYKcmyk(48.7%, 67.1%, 0%, 40.4%)
CIE-LABlab(29.83, 38.09, -51.65)
CIE-LCHlch(29.83, 64.17, 306.41°)
OKLaboklab(41.16% 0.0549 -0.1479)
OKLCHoklch(41.16% 0.158 290.4)
XYZxyz(9.9484, 6.1675, 30.3659)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3298 #7C9832
analogous
#324998 #4E3298 #813298
triadic
#4E3298 #984E32 #32984E
tetradic
#4E3298 #983249 #7C9832 #329881
square
#4E3298 #983249 #7C9832 #329881
split-complementary
#4E3298 #988132 #499832
monochromatic
#1F143C #36236A #4E3298 #6845C2 #8D73D1

Accessibility & contrast

On white

9.40
#4E3298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4E3298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3298
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3298#FFFFFF#000000##FFFFFF
##4E32981.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#364B60
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3298;
/* rgb */ color: rgb(78, 50, 152);
/* oklch */ color: oklch(41.2% 0.158 290.4);
Tailwind
colors: {
  custom: {
    50: '#866cb7',
    500: '#4e3298',
    950: '#000000',
  },
}
SCSS
$custom: #4e3298;
$custom-light: #866cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3298",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 152
  },
  "hsl": {
    "h": 256.471,
    "s": 50.495,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41155,
    "c": 0.1578,
    "h": 290.4
  },
  "luminance": 0.06168
}

Semantic roles & 50–950 ramp

primary
#4E3298
secondary
#A4B96D
accent
#DA4EB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3298

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

Preview Lab → · Contrast checker → · Palette generator →

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