#4E308F#4E308F

#4E308F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.149 H 293.0°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#4E308F
RGBrgb(78, 48, 143)
HSLhsl(259, 50%, 37%)
HSVhsv(259, 66%, 56%)
CMYKcmyk(45.5%, 66.4%, 0%, 43.9%)
CIE-LABlab(28.69, 36.59, -47.99)
CIE-LCHlch(28.69, 60.35, 307.33°)
OKLaboklab(40.1% 0.0582 -0.1372)
OKLCHoklch(40.1% 0.149 293)
XYZxyz(9.1554, 5.7165, 26.6023)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E308F #718F30
analogous
#30428F #4E308F #7D308F
triadic
#4E308F #8F4E30 #308F4E
tetradic
#4E308F #8F3042 #718F30 #308F7D
square
#4E308F #8F3042 #718F30 #308F7D
split-complementary
#4E308F #8F7D30 #428F30
monochromatic
#1C1133 #352161 #4E308F #673FBD #8B6CCE

Accessibility & contrast

On white

9.80
#4E308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4E308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E308F
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E308F#FFFFFF#000000##FFFFFF
##4E308F1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#3B465B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e308f;
/* rgb */ color: rgb(78, 48, 143);
/* oklch */ color: oklch(40.1% 0.149 293.0);
Tailwind
colors: {
  custom: {
    50: '#856ab1',
    500: '#4e308f',
    950: '#000000',
  },
}
SCSS
$custom: #4e308f;
$custom-light: #856ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e308f",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 258.947,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40102,
    "c": 0.14899,
    "h": 293
  },
  "luminance": 0.05717
}

Semantic roles & 50–950 ramp

primary
#4E308F
secondary
#9CB566
accent
#D94FAD
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E308F

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

Preview Lab → · Contrast checker → · Palette generator →

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