#4E318C#4E318C

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

Color values

HEX#4E318C
RGBrgb(78, 49, 140)
HSLhsl(259, 48%, 37%)
HSVhsv(259, 65%, 55%)
CMYKcmyk(44.3%, 65%, 0%, 45.1%)
CIE-LABlab(28.67, 35.13, -46.16)
CIE-LCHlch(28.67, 58.01, 307.27°)
OKLaboklab(40.02% 0.0574 -0.1318)
OKLCHoklch(40.02% 0.144 293.5)
XYZxyz(8.9725, 5.7095, 25.4352)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E318C #6F8C31
analogous
#31428C #4E318C #7C318C
triadic
#4E318C #8C4E31 #318C4E
tetradic
#4E318C #8C3142 #6F8C31 #318C7C
square
#4E318C #8C3142 #6F8C31 #318C7C
split-complementary
#4E318C #8C7C31 #428C31
monochromatic
#1B1131 #35215F #4E318C #6741B9 #8A6CCC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E318C#FFFFFF#000000##FFFFFF
##4E318C1.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)
#00458F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#3D465A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e318c;
/* rgb */ color: rgb(78, 49, 140);
/* oklch */ color: oklch(40.0% 0.144 293.5);
Tailwind
colors: {
  custom: {
    50: '#856bae',
    500: '#4e318c',
    950: '#000000',
  },
}
SCSS
$custom: #4e318c;
$custom-light: #856bae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e318c",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 259.121,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40015,
    "c": 0.14374,
    "h": 293.5
  },
  "luminance": 0.0571
}

Semantic roles & 50–950 ramp

primary
#4E318C
secondary
#9AB366
accent
#D850AC
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E318C

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

Preview Lab → · Contrast checker → · Palette generator →

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