#4E317E#4E317E

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

Color values

HEX#4E317E
RGBrgb(78, 49, 126)
HSLhsl(263, 44%, 34%)
HSVhsv(263, 61%, 49%)
CMYKcmyk(38.1%, 61.1%, 0%, 50.6%)
CIE-LABlab(27.63, 31.09, -39.10)
CIE-LCHlch(27.63, 49.95, 308.49°)
OKLaboklab(38.93% 0.0582 -0.111)
OKLCHoklch(38.93% 0.125 297.6)
XYZxyz(8.0051, 5.3226, 20.3402)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E317E #617E31
analogous
#313B7E #4E317E #75317E
triadic
#4E317E #7E4E31 #317E4E
tetradic
#4E317E #7E313B #617E31 #317E75
square
#4E317E #7E313B #617E31 #317E75
split-complementary
#4E317E #7E7531 #3B7E31
monochromatic
#170F26 #332052 #4E317E #6942AA #8966C3

Accessibility & contrast

On white

10.17
#4E317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E317E
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E317E#FFFFFF#000000##FFFFFF
##4E317E1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044181
Deuteranopia (green-blind)
#14407C
Tritanopia (blue-blind)
#434152
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e317e;
/* rgb */ color: rgb(78, 49, 126);
/* oklch */ color: oklch(38.9% 0.125 297.6);
Tailwind
colors: {
  custom: {
    50: '#836aa4',
    500: '#4e317e',
    950: '#000000',
  },
}
SCSS
$custom: #4e317e;
$custom-light: #836aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e317e",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 262.597,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38935,
    "c": 0.12534,
    "h": 297.6
  },
  "luminance": 0.05323
}

Semantic roles & 50–950 ramp

primary
#4E317E
secondary
#8FAB60
accent
#D454A4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E317E

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

Preview Lab → · Contrast checker → · Palette generator →

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