#4E309E#4E309E

#4E309E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.168 H 289.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4E309E
RGBrgb(78, 48, 158)
HSLhsl(256, 53%, 40%)
HSVhsv(256, 70%, 62%)
CMYKcmyk(50.6%, 69.6%, 0%, 38%)
CIE-LABlab(29.92, 40.99, -55.17)
CIE-LCHlch(29.92, 68.73, 306.62°)
OKLaboklab(41.37% 0.056 -0.1583)
OKLCHoklch(41.37% 0.168 289.5)
XYZxyz(10.3686, 6.2018, 32.9919)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E309E #809E30
analogous
#30499E #4E309E #85309E
triadic
#4E309E #9E4E30 #309E4E
tetradic
#4E309E #9E3049 #809E30 #309E85
square
#4E309E #9E3049 #809E30 #309E85
split-complementary
#4E309E #9E8530 #499E30
monochromatic
#201340 #37226F #4E309E #6845C6 #8E74D5

Accessibility & contrast

On white

9.37
#4E309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4E309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E309E
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E309E#FFFFFF#000000##FFFFFF
##4E309E1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#324C63
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e309e;
/* rgb */ color: rgb(78, 48, 158);
/* oklch */ color: oklch(41.4% 0.168 289.5);
Tailwind
colors: {
  custom: {
    50: '#876bbc',
    500: '#4e309e',
    950: '#000000',
  },
}
SCSS
$custom: #4e309e;
$custom-light: #876bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e309e",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 256.364,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41371,
    "c": 0.16788,
    "h": 289.5
  },
  "luminance": 0.06202
}

Semantic roles & 50–950 ramp

primary
#4E309E
secondary
#A7BD6D
accent
#DD4BB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E309E

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

Preview Lab → · Contrast checker → · Palette generator →

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