#4E318B#4E318B

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

Color values

HEX#4E318B
RGBrgb(78, 49, 139)
HSLhsl(259, 48%, 37%)
HSVhsv(259, 65%, 55%)
CMYKcmyk(43.9%, 64.7%, 0%, 45.5%)
CIE-LABlab(28.59, 34.84, -45.67)
CIE-LCHlch(28.59, 57.44, 307.34°)
OKLaboklab(39.94% 0.0574 -0.1303)
OKLCHoklch(39.94% 0.142 293.8)
XYZxyz(8.8991, 5.6802, 25.0486)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E318B #6E8B31
analogous
#31418B #4E318B #7B318B
triadic
#4E318B #8B4E31 #318B4E
tetradic
#4E318B #8B3141 #6E8B31 #318B7B
square
#4E318B #8B3141 #6E8B31 #318B7B
split-complementary
#4E318B #8B7B31 #418B31
monochromatic
#1B1131 #35215E #4E318B #6741B8 #8A6BCB

Accessibility & contrast

On white

9.83
#4E318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E318B
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E318B#FFFFFF#000000##FFFFFF
##4E318B1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e318b;
/* rgb */ color: rgb(78, 49, 139);
/* oklch */ color: oklch(39.9% 0.142 293.8);
Tailwind
colors: {
  custom: {
    50: '#856bae',
    500: '#4e318b',
    950: '#000000',
  },
}
SCSS
$custom: #4e318b;
$custom-light: #856bae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e318b",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 259.333,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39936,
    "c": 0.14244,
    "h": 293.8
  },
  "luminance": 0.0568
}

Semantic roles & 50–950 ramp

primary
#4E318B
secondary
#9AB265
accent
#D750AC
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E318B

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

Preview Lab → · Contrast checker → · Palette generator →

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