#4E3297#4E3297

#4E3297 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.157 H 290.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4E3297
RGBrgb(78, 50, 151)
HSLhsl(257, 50%, 39%)
HSVhsv(257, 67%, 59%)
CMYKcmyk(48.3%, 66.9%, 0%, 40.8%)
CIE-LABlab(29.75, 37.79, -51.17)
CIE-LCHlch(29.75, 63.61, 306.45°)
OKLaboklab(41.07% 0.055 -0.1465)
OKLCHoklch(41.07% 0.157 290.6)
XYZxyz(9.8668, 6.1349, 29.9364)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3297 #7B9732
analogous
#324897 #4E3297 #813297
triadic
#4E3297 #974E32 #32974E
tetradic
#4E3297 #973248 #7B9732 #329781
square
#4E3297 #973248 #7B9732 #329781
split-complementary
#4E3297 #978132 #489732
monochromatic
#1F143B #362369 #4E3297 #6745C1 #8D73D1

Accessibility & contrast

On white

9.43
#4E3297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3297
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3297#FFFFFF#000000##FFFFFF
##4E32971.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#374A60
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3297;
/* rgb */ color: rgb(78, 50, 151);
/* oklch */ color: oklch(41.1% 0.157 290.6);
Tailwind
colors: {
  custom: {
    50: '#866cb6',
    500: '#4e3297',
    950: '#000000',
  },
}
SCSS
$custom: #4e3297;
$custom-light: #866cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3297",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 151
  },
  "hsl": {
    "h": 256.634,
    "s": 50.249,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41071,
    "c": 0.15652,
    "h": 290.6
  },
  "luminance": 0.06135
}

Semantic roles & 50–950 ramp

primary
#4E3297
secondary
#A3B96C
accent
#DA4EB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3297

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

Preview Lab → · Contrast checker → · Palette generator →

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