#4E317F#4E317F

#4E317F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.0% C 0.127 H 297.3°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#4E317F
RGBrgb(78, 49, 127)
HSLhsl(262, 44%, 35%)
HSVhsv(262, 61%, 50%)
CMYKcmyk(38.6%, 61.4%, 0%, 50.2%)
CIE-LABlab(27.71, 31.37, -39.61)
CIE-LCHlch(27.71, 50.53, 308.38°)
OKLaboklab(39.01% 0.0581 -0.1125)
OKLCHoklch(39.01% 0.127 297.3)
XYZxyz(8.0700, 5.3485, 20.6818)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E317F #627F31
analogous
#313B7F #4E317F #75317F
triadic
#4E317F #7F4E31 #317F4E
tetradic
#4E317F #7F313B #627F31 #317F75
square
#4E317F #7F313B #627F31 #317F75
split-complementary
#4E317F #7F7531 #3B7F31
monochromatic
#180F27 #332053 #4E317F #6942AB #8966C4

Accessibility & contrast

On white

10.15
#4E317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4E317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E317F
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E317F#FFFFFF#000000##FFFFFF
##4E317F1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014282
Deuteranopia (green-blind)
#12407D
Tritanopia (blue-blind)
#434253
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e317f;
/* rgb */ color: rgb(78, 49, 127);
/* oklch */ color: oklch(39.0% 0.127 297.3);
Tailwind
colors: {
  custom: {
    50: '#836aa5',
    500: '#4e317f',
    950: '#000000',
  },
}
SCSS
$custom: #4e317f;
$custom-light: #836aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e317f",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 262.308,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3901,
    "c": 0.12667,
    "h": 297.3
  },
  "luminance": 0.05349
}

Semantic roles & 50–950 ramp

primary
#4E317F
secondary
#90AB60
accent
#D454A4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E317F

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

Preview Lab → · Contrast checker → · Palette generator →

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