#4E308B#4E308B

#4E308B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.8% C 0.144 H 294.0°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#4E308B
RGBrgb(78, 48, 139)
HSLhsl(260, 49%, 37%)
HSVhsv(260, 65%, 55%)
CMYKcmyk(43.9%, 65.5%, 0%, 45.5%)
CIE-LABlab(28.37, 35.43, -46.02)
CIE-LCHlch(28.37, 58.08, 307.59°)
OKLaboklab(39.78% 0.0586 -0.1314)
OKLCHoklch(39.78% 0.144 294)
XYZxyz(8.8578, 5.5975, 25.0348)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E308B #6D8B30
analogous
#30408B #4E308B #7C308B
triadic
#4E308B #8B4E30 #308B4E
tetradic
#4E308B #8B3040 #6D8B30 #308B7C
square
#4E308B #8B3040 #6D8B30 #308B7C
split-complementary
#4E308B #8B7C30 #408B30
monochromatic
#1B1130 #34205E #4E308B #6840B8 #8A6ACC

Accessibility & contrast

On white

9.91
#4E308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4E308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E308B
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E308B#FFFFFF#000000##FFFFFF
##4E308B1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#3D4559
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e308b;
/* rgb */ color: rgb(78, 48, 139);
/* oklch */ color: oklch(39.8% 0.144 294.0);
Tailwind
colors: {
  custom: {
    50: '#856aae',
    500: '#4e308b',
    950: '#000000',
  },
}
SCSS
$custom: #4e308b;
$custom-light: #856aae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e308b",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 259.78,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39778,
    "c": 0.14386,
    "h": 294
  },
  "luminance": 0.05598
}

Semantic roles & 50–950 ramp

primary
#4E308B
secondary
#99B364
accent
#D850AB
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E308B

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

Preview Lab → · Contrast checker → · Palette generator →

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