#4E308E#4E308E

#4E308E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.148 H 293.2°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#4E308E
RGBrgb(78, 48, 142)
HSLhsl(259, 49%, 37%)
HSVhsv(259, 66%, 56%)
CMYKcmyk(45.1%, 66.2%, 0%, 44.3%)
CIE-LABlab(28.61, 36.30, -47.50)
CIE-LCHlch(28.61, 59.78, 307.39°)
OKLaboklab(40.02% 0.0583 -0.1357)
OKLCHoklch(40.02% 0.148 293.2)
XYZxyz(9.0800, 5.6863, 26.2051)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E308E #708E30
analogous
#30418E #4E308E #7D308E
triadic
#4E308E #8E4E30 #308E4E
tetradic
#4E308E #8E3041 #708E30 #308E7D
square
#4E308E #8E3041 #708E30 #308E7D
split-complementary
#4E308E #8E7D30 #418E30
monochromatic
#1C1133 #352160 #4E308E #673FBC #8B6BCD

Accessibility & contrast

On white

9.83
#4E308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4E308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E308E
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E308E#FFFFFF#000000##FFFFFF
##4E308E1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#3C465A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e308e;
/* rgb */ color: rgb(78, 48, 142);
/* oklch */ color: oklch(40.0% 0.148 293.2);
Tailwind
colors: {
  custom: {
    50: '#856ab0',
    500: '#4e308e',
    950: '#000000',
  },
}
SCSS
$custom: #4e308e;
$custom-light: #856ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e308e",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 259.149,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40021,
    "c": 0.14771,
    "h": 293.2
  },
  "luminance": 0.05687
}

Semantic roles & 50–950 ramp

primary
#4E308E
secondary
#9BB465
accent
#D94FAD
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E308E

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

Preview Lab → · Contrast checker → · Palette generator →

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