#4E3299#4E3299

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

Color values

HEX#4E3299
RGBrgb(78, 50, 153)
HSLhsl(256, 51%, 40%)
HSVhsv(256, 67%, 60%)
CMYKcmyk(49%, 67.3%, 0%, 40%)
CIE-LABlab(29.91, 38.38, -52.13)
CIE-LCHlch(29.91, 64.74, 306.37°)
OKLaboklab(41.24% 0.0548 -0.1493)
OKLCHoklch(41.24% 0.159 290.1)
XYZxyz(10.0306, 6.2004, 30.7991)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3299 #7D9932
analogous
#324999 #4E3299 #823299
triadic
#4E3299 #994E32 #32994E
tetradic
#4E3299 #993249 #7D9932 #329982
square
#4E3299 #993249 #7D9932 #329982
split-complementary
#4E3299 #998232 #499932
monochromatic
#1F143D #36236B #4E3299 #6846C2 #8D74D2

Accessibility & contrast

On white

9.37
#4E3299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4E3299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3299
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3299#FFFFFF#000000##FFFFFF
##4E32991.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#364B61
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3299;
/* rgb */ color: rgb(78, 50, 153);
/* oklch */ color: oklch(41.2% 0.159 290.1);
Tailwind
colors: {
  custom: {
    50: '#866cb8',
    500: '#4e3299',
    950: '#000000',
  },
}
SCSS
$custom: #4e3299;
$custom-light: #866cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3299",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 256.311,
    "s": 50.739,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41239,
    "c": 0.15906,
    "h": 290.1
  },
  "luminance": 0.06201
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E3299

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

Preview Lab → · Contrast checker → · Palette generator →

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