#4E317B#4E317B

#4E317B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.121 H 298.7°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4E317B
RGBrgb(78, 49, 123)
HSLhsl(264, 43%, 34%)
HSVhsv(264, 60%, 48%)
CMYKcmyk(36.6%, 60.2%, 0%, 51.8%)
CIE-LABlab(27.43, 30.24, -37.55)
CIE-LCHlch(27.43, 48.21, 308.85°)
OKLaboklab(38.71% 0.0582 -0.1065)
OKLCHoklch(38.71% 0.121 298.7)
XYZxyz(7.8145, 5.2463, 19.3360)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E317B #5E7B31
analogous
#31397B #4E317B #73317B
triadic
#4E317B #7B4E31 #317B4E
tetradic
#4E317B #7B3139 #5E7B31 #317B73
square
#4E317B #7B3139 #5E7B31 #317B73
split-complementary
#4E317B #7B7331 #397B31
monochromatic
#160E23 #32204F #4E317B #6A42A7 #8965C2

Accessibility & contrast

On white

10.25
#4E317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4E317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E317B
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E317B#FFFFFF#000000##FFFFFF
##4E317B1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B417D
Deuteranopia (green-blind)
#184079
Tritanopia (blue-blind)
#444051
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e317b;
/* rgb */ color: rgb(78, 49, 123);
/* oklch */ color: oklch(38.7% 0.121 298.7);
Tailwind
colors: {
  custom: {
    50: '#836aa2',
    500: '#4e317b',
    950: '#000000',
  },
}
SCSS
$custom: #4e317b;
$custom-light: #836aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e317b",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 263.514,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38715,
    "c": 0.12134,
    "h": 298.7
  },
  "luminance": 0.05246
}

Semantic roles & 50–950 ramp

primary
#4E317B
secondary
#8CA95F
accent
#D355A1
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E317B

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

Preview Lab → · Contrast checker → · Palette generator →

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