#4E309F#4E309F

#4E309F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.169 H 289.3°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4E309F
RGBrgb(78, 48, 159)
HSLhsl(256, 54%, 41%)
HSVhsv(256, 70%, 62%)
CMYKcmyk(50.9%, 69.8%, 0%, 37.6%)
CIE-LABlab(30.00, 41.29, -55.63)
CIE-LCHlch(30.00, 69.28, 306.58°)
OKLaboklab(41.46% 0.0558 -0.1596)
OKLCHoklch(41.46% 0.169 289.3)
XYZxyz(10.4550, 6.2364, 33.4470)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E309F #819F30
analogous
#304A9F #4E309F #85309F
triadic
#4E309F #9F4E30 #309F4E
tetradic
#4E309F #9F304A #819F30 #309F85
square
#4E309F #9F304A #819F30 #309F85
split-complementary
#4E309F #9F8530 #4A9F30
monochromatic
#201441 #372270 #4E309F #6845C7 #8E74D5

Accessibility & contrast

On white

9.34
#4E309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E309F
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E309F#FFFFFF#000000##FFFFFF
##4E309F1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#324C64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e309f;
/* rgb */ color: rgb(78, 48, 159);
/* oklch */ color: oklch(41.5% 0.169 289.3);
Tailwind
colors: {
  custom: {
    50: '#876bbc',
    500: '#4e309f',
    950: '#000000',
  },
}
SCSS
$custom: #4e309f;
$custom-light: #876bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e309f",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 256.216,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41458,
    "c": 0.16912,
    "h": 289.3
  },
  "luminance": 0.06237
}

Semantic roles & 50–950 ramp

primary
#4E309F
secondary
#A8BD6E
accent
#DD4BB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E309F

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

Preview Lab → · Contrast checker → · Palette generator →

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