#4E308A#4E308A

#4E308A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.7% C 0.143 H 294.3°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#4E308A
RGBrgb(78, 48, 138)
HSLhsl(260, 48%, 36%)
HSVhsv(260, 65%, 54%)
CMYKcmyk(43.5%, 65.2%, 0%, 45.9%)
CIE-LABlab(28.30, 35.14, -45.52)
CIE-LCHlch(28.30, 57.51, 307.66°)
OKLaboklab(39.7% 0.0587 -0.1299)
OKLCHoklch(39.7% 0.143 294.3)
XYZxyz(8.7851, 5.5684, 24.6518)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E308A #6C8A30
analogous
#303F8A #4E308A #7B308A
triadic
#4E308A #8A4E30 #308A4E
tetradic
#4E308A #8A303F #6C8A30 #308A7B
square
#4E308A #8A303F #6C8A30 #308A7B
split-complementary
#4E308A #8A7B30 #3F8A30
monochromatic
#1B102F #34205D #4E308A #6840B7 #8A69CB

Accessibility & contrast

On white

9.93
#4E308A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4E308A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E308A
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E308A#FFFFFF#000000##FFFFFF
##4E308A1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#3E4558
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e308a;
/* rgb */ color: rgb(78, 48, 138);
/* oklch */ color: oklch(39.7% 0.143 294.3);
Tailwind
colors: {
  custom: {
    50: '#856aad',
    500: '#4e308a',
    950: '#000000',
  },
}
SCSS
$custom: #4e308a;
$custom-light: #856aad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e308a",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 260,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39698,
    "c": 0.14257,
    "h": 294.3
  },
  "luminance": 0.05569
}

Semantic roles & 50–950 ramp

primary
#4E308A
secondary
#98B264
accent
#D850AB
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E308A

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

Preview Lab → · Contrast checker → · Palette generator →

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