#4E3097#4E3097

#4E3097 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.159 H 291.0°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#4E3097
RGBrgb(78, 48, 151)
HSLhsl(257, 52%, 39%)
HSVhsv(257, 68%, 59%)
CMYKcmyk(48.3%, 68.2%, 0%, 40.8%)
CIE-LABlab(29.33, 38.93, -51.85)
CIE-LCHlch(29.33, 64.84, 306.90°)
OKLaboklab(40.77% 0.0571 -0.1485)
OKLCHoklch(40.77% 0.159 291)
XYZxyz(9.7832, 5.9676, 29.9085)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3097 #799730
analogous
#304697 #4E3097 #823097
triadic
#4E3097 #974E30 #30974E
tetradic
#4E3097 #973046 #799730 #309782
square
#4E3097 #973046 #799730 #309782
split-complementary
#4E3097 #978230 #469730
monochromatic
#1E123A #362169 #4E3097 #6741C3 #8C70D2

Accessibility & contrast

On white

9.57
#4E3097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E3097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3097
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3097#FFFFFF#000000##FFFFFF
##4E30971.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#37495F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3097;
/* rgb */ color: rgb(78, 48, 151);
/* oklch */ color: oklch(40.8% 0.159 291.0);
Tailwind
colors: {
  custom: {
    50: '#866ab6',
    500: '#4e3097',
    950: '#000000',
  },
}
SCSS
$custom: #4e3097;
$custom-light: #866ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3097",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 151
  },
  "hsl": {
    "h": 257.476,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40769,
    "c": 0.15914,
    "h": 291
  },
  "luminance": 0.05968
}

Semantic roles & 50–950 ramp

primary
#4E3097
secondary
#A2B96A
accent
#DB4DB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3097

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

Preview Lab → · Contrast checker → · Palette generator →

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