#4E308C#4E308C

#4E308C is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.145 H 293.8°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#4E308C
RGBrgb(78, 48, 140)
HSLhsl(260, 49%, 37%)
HSVhsv(260, 66%, 55%)
CMYKcmyk(44.3%, 65.7%, 0%, 45.1%)
CIE-LABlab(28.45, 35.72, -46.51)
CIE-LCHlch(28.45, 58.64, 307.52°)
OKLaboklab(39.86% 0.0585 -0.1328)
OKLCHoklch(39.86% 0.145 293.8)
XYZxyz(8.9312, 5.6268, 25.4214)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E308C #6E8C30
analogous
#30408C #4E308C #7C308C
triadic
#4E308C #8C4E30 #308C4E
tetradic
#4E308C #8C3040 #6E8C30 #308C7C
square
#4E308C #8C3040 #6E8C30 #308C7C
split-complementary
#4E308C #8C7C30 #408C30
monochromatic
#1B1131 #35205E #4E308C #6740BA #8A6ACC

Accessibility & contrast

On white

9.88
#4E308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4E308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E308C
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E308C#FFFFFF#000000##FFFFFF
##4E308C1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#3D4559
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e308c;
/* rgb */ color: rgb(78, 48, 140);
/* oklch */ color: oklch(39.9% 0.145 293.8);
Tailwind
colors: {
  custom: {
    50: '#856aae',
    500: '#4e308c',
    950: '#000000',
  },
}
SCSS
$custom: #4e308c;
$custom-light: #856aae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e308c",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 259.565,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39858,
    "c": 0.14515,
    "h": 293.8
  },
  "luminance": 0.05627
}

Semantic roles & 50–950 ramp

primary
#4E308C
secondary
#9AB364
accent
#D84FAC
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E308C

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

Preview Lab → · Contrast checker → · Palette generator →

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