#4E309D#4E309D

#4E309D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.167 H 289.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4E309D
RGBrgb(78, 48, 157)
HSLhsl(257, 53%, 40%)
HSVhsv(257, 69%, 62%)
CMYKcmyk(50.3%, 69.4%, 0%, 38.4%)
CIE-LABlab(29.83, 40.70, -54.70)
CIE-LCHlch(29.83, 68.18, 306.65°)
OKLaboklab(41.28% 0.0562 -0.1569)
OKLCHoklch(41.28% 0.167 289.7)
XYZxyz(10.2829, 6.1675, 32.5404)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E309D #7F9D30
analogous
#30489D #4E309D #85309D
triadic
#4E309D #9D4E30 #309D4E
tetradic
#4E309D #9D3048 #7F9D30 #309D85
square
#4E309D #9D3048 #7F9D30 #309D85
split-complementary
#4E309D #9D8530 #489D30
monochromatic
#1F133F #37226E #4E309D #6844C6 #8E73D4

Accessibility & contrast

On white

9.40
#4E309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4E309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E309D
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E309D#FFFFFF#000000##FFFFFF
##4E309D1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#334B62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e309d;
/* rgb */ color: rgb(78, 48, 157);
/* oklch */ color: oklch(41.3% 0.167 289.7);
Tailwind
colors: {
  custom: {
    50: '#876bbb',
    500: '#4e309d',
    950: '#000000',
  },
}
SCSS
$custom: #4e309d;
$custom-light: #876bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e309d",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 256.514,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41284,
    "c": 0.16665,
    "h": 289.7
  },
  "luminance": 0.06168
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E309D

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

Preview Lab → · Contrast checker → · Palette generator →

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