#4E308D#4E308D

#4E308D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 39.9% C 0.146 H 293.5°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#4E308D
RGBrgb(78, 48, 141)
HSLhsl(259, 49%, 37%)
HSVhsv(259, 66%, 55%)
CMYKcmyk(44.7%, 66%, 0%, 44.7%)
CIE-LABlab(28.53, 36.01, -47.01)
CIE-LCHlch(28.53, 59.21, 307.45°)
OKLaboklab(39.94% 0.0584 -0.1343)
OKLCHoklch(39.94% 0.146 293.5)
XYZxyz(9.0053, 5.6564, 25.8115)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E308D #6F8D30
analogous
#30418D #4E308D #7D308D
triadic
#4E308D #8D4E30 #308D4E
tetradic
#4E308D #8D3041 #6F8D30 #308D7D
square
#4E308D #8D3041 #6F8D30 #308D7D
split-complementary
#4E308D #8D7D30 #418D30
monochromatic
#1B1132 #35205F #4E308D #6740BB #8A6BCD

Accessibility & contrast

On white

9.85
#4E308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4E308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E308D
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E308D#FFFFFF#000000##FFFFFF
##4E308D1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#3C465A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e308d;
/* rgb */ color: rgb(78, 48, 141);
/* oklch */ color: oklch(39.9% 0.146 293.5);
Tailwind
colors: {
  custom: {
    50: '#856aaf',
    500: '#4e308d',
    950: '#000000',
  },
}
SCSS
$custom: #4e308d;
$custom-light: #856aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e308d",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 259.355,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39939,
    "c": 0.14643,
    "h": 293.5
  },
  "luminance": 0.05657
}

Semantic roles & 50–950 ramp

primary
#4E308D
secondary
#9AB465
accent
#D94FAC
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E308D

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

Preview Lab → · Contrast checker → · Palette generator →

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