#4E307B#4E307B

#4E307B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.5% C 0.123 H 299.0°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#4E307B
RGBrgb(78, 48, 123)
HSLhsl(264, 44%, 34%)
HSVhsv(264, 61%, 48%)
CMYKcmyk(36.6%, 61%, 0%, 51.8%)
CIE-LABlab(27.20, 30.84, -37.91)
CIE-LCHlch(27.20, 48.87, 309.13°)
OKLaboklab(38.55% 0.0595 -0.1075)
OKLCHoklch(38.55% 0.123 299)
XYZxyz(7.7731, 5.1636, 19.3222)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E307B #5D7B30
analogous
#30377B #4E307B #73307B
triadic
#4E307B #7B4E30 #307B4E
tetradic
#4E307B #7B3037 #5D7B30 #307B73
square
#4E307B #7B3037 #5D7B30 #307B73
split-complementary
#4E307B #7B7330 #377B30
monochromatic
#160E23 #321F4F #4E307B #6A41A7 #8963C2

Accessibility & contrast

On white

10.33
#4E307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E307B
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E307B#FFFFFF#000000##FFFFFF
##4E307B1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07407D
Deuteranopia (green-blind)
#164079
Tritanopia (blue-blind)
#444050
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e307b;
/* rgb */ color: rgb(78, 48, 123);
/* oklch */ color: oklch(38.5% 0.123 299.0);
Tailwind
colors: {
  custom: {
    50: '#836aa2',
    500: '#4e307b',
    950: '#000000',
  },
}
SCSS
$custom: #4e307b;
$custom-light: #836aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e307b",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 264,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38547,
    "c": 0.12293,
    "h": 299
  },
  "luminance": 0.05164
}

Semantic roles & 50–950 ramp

primary
#4E307B
secondary
#8BA95D
accent
#D454A1
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E307B

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

Preview Lab → · Contrast checker → · Palette generator →

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