#4E309C#4E309C

#4E309C is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.165 H 289.9°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4E309C
RGBrgb(78, 48, 156)
HSLhsl(257, 53%, 40%)
HSVhsv(257, 69%, 61%)
CMYKcmyk(50%, 69.2%, 0%, 38.8%)
CIE-LABlab(29.75, 40.41, -54.23)
CIE-LCHlch(29.75, 67.62, 306.69°)
OKLaboklab(41.2% 0.0564 -0.1555)
OKLCHoklch(41.2% 0.165 289.9)
XYZxyz(10.1979, 6.1335, 32.0926)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E309C #7E9C30
analogous
#30489C #4E309C #84309C
triadic
#4E309C #9C4E30 #309C4E
tetradic
#4E309C #9C3048 #7E9C30 #309C84
square
#4E309C #9C3048 #7E9C30 #309C84
split-complementary
#4E309C #9C8430 #489C30
monochromatic
#1F133E #37226D #4E309C #6844C5 #8E73D4

Accessibility & contrast

On white

9.43
#4E309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E309C
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E309C#FFFFFF#000000##FFFFFF
##4E309C1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#344B62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e309c;
/* rgb */ color: rgb(78, 48, 156);
/* oklch */ color: oklch(41.2% 0.165 289.9);
Tailwind
colors: {
  custom: {
    50: '#876bba',
    500: '#4e309c',
    950: '#000000',
  },
}
SCSS
$custom: #4e309c;
$custom-light: #876bba;
$custom-dark: #000000;
JSON
{
  "hex": "#4e309c",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 256.667,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.41197,
    "c": 0.1654,
    "h": 289.9
  },
  "luminance": 0.06134
}

Semantic roles & 50–950 ramp

primary
#4E309C
secondary
#A6BC6C
accent
#DC4BB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E309C

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

Preview Lab → · Contrast checker → · Palette generator →

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