#4E309B#4E309B

#4E309B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.164 H 290.1°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#4E309B
RGBrgb(78, 48, 155)
HSLhsl(257, 53%, 40%)
HSVhsv(257, 69%, 61%)
CMYKcmyk(49.7%, 69%, 0%, 39.2%)
CIE-LABlab(29.66, 40.11, -53.75)
CIE-LCHlch(29.66, 67.07, 306.73°)
OKLaboklab(41.11% 0.0565 -0.1541)
OKLCHoklch(41.11% 0.164 290.1)
XYZxyz(10.1135, 6.0998, 31.6485)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E309B #7D9B30
analogous
#30489B #4E309B #83309B
triadic
#4E309B #9B4E30 #309B4E
tetradic
#4E309B #9B3048 #7D9B30 #309B83
square
#4E309B #9B3048 #7D9B30 #309B83
split-complementary
#4E309B #9B8330 #489B30
monochromatic
#1F133E #36226C #4E309B #6843C5 #8D72D3

Accessibility & contrast

On white

9.46
#4E309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4E309B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E309B
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E309B#FFFFFF#000000##FFFFFF
##4E309B1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#344B61
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e309b;
/* rgb */ color: rgb(78, 48, 155);
/* oklch */ color: oklch(41.1% 0.164 290.1);
Tailwind
colors: {
  custom: {
    50: '#876bb9',
    500: '#4e309b',
    950: '#000000',
  },
}
SCSS
$custom: #4e309b;
$custom-light: #876bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e309b",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 256.822,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41111,
    "c": 0.16416,
    "h": 290.1
  },
  "luminance": 0.061
}

Semantic roles & 50–950 ramp

primary
#4E309B
secondary
#A5BB6C
accent
#DC4CB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E309B

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

Preview Lab → · Contrast checker → · Palette generator →

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