#4E317D#4E317D

#4E317D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 38.9% C 0.124 H 298.0°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#4E317D
RGBrgb(78, 49, 125)
HSLhsl(263, 44%, 34%)
HSVhsv(263, 61%, 49%)
CMYKcmyk(37.6%, 60.8%, 0%, 51%)
CIE-LABlab(27.56, 30.80, -38.58)
CIE-LCHlch(27.56, 49.37, 308.60°)
OKLaboklab(38.86% 0.0582 -0.1095)
OKLCHoklch(38.86% 0.124 298)
XYZxyz(7.9409, 5.2969, 20.0021)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E317D #607D31
analogous
#313A7D #4E317D #74317D
triadic
#4E317D #7D4E31 #317D4E
tetradic
#4E317D #7D313A #607D31 #317D74
square
#4E317D #7D313A #607D31 #317D74
split-complementary
#4E317D #7D7431 #3A7D31
monochromatic
#170F25 #332051 #4E317D #6942A9 #8966C3

Accessibility & contrast

On white

10.20
#4E317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4E317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E317D
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E317D#FFFFFF#000000##FFFFFF
##4E317D1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06417F
Deuteranopia (green-blind)
#15407B
Tritanopia (blue-blind)
#434152
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e317d;
/* rgb */ color: rgb(78, 49, 125);
/* oklch */ color: oklch(38.9% 0.124 298.0);
Tailwind
colors: {
  custom: {
    50: '#836aa3',
    500: '#4e317d',
    950: '#000000',
  },
}
SCSS
$custom: #4e317d;
$custom-light: #836aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e317d",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 262.895,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38861,
    "c": 0.12401,
    "h": 298
  },
  "luminance": 0.05297
}

Semantic roles & 50–950 ramp

primary
#4E317D
secondary
#8EAA60
accent
#D354A3
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E317D

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

Preview Lab → · Contrast checker → · Palette generator →

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