#4E307C#4E307C

#4E307C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.6% C 0.124 H 298.6°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4E307C
RGBrgb(78, 48, 124)
HSLhsl(264, 44%, 34%)
HSVhsv(264, 61%, 49%)
CMYKcmyk(37.1%, 61.3%, 0%, 51.4%)
CIE-LABlab(27.27, 31.12, -38.43)
CIE-LCHlch(27.27, 49.45, 309.00°)
OKLaboklab(38.62% 0.0595 -0.1091)
OKLCHoklch(38.62% 0.124 298.6)
XYZxyz(7.8360, 5.1888, 19.6536)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E307C #5E7C30
analogous
#30387C #4E307C #74307C
triadic
#4E307C #7C4E30 #307C4E
tetradic
#4E307C #7C3038 #5E7C30 #307C74
square
#4E307C #7C3038 #5E7C30 #307C74
split-complementary
#4E307C #7C7430 #387C30
monochromatic
#160E24 #321F50 #4E307C #6A41A8 #8964C3

Accessibility & contrast

On white

10.31
#4E307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E307C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E307C
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E307C#FFFFFF#000000##FFFFFF
##4E307C1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05407E
Deuteranopia (green-blind)
#15407A
Tritanopia (blue-blind)
#444051
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e307c;
/* rgb */ color: rgb(78, 48, 124);
/* oklch */ color: oklch(38.6% 0.124 298.6);
Tailwind
colors: {
  custom: {
    50: '#836aa2',
    500: '#4e307c',
    950: '#000000',
  },
}
SCSS
$custom: #4e307c;
$custom-light: #836aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e307c",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 263.684,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3862,
    "c": 0.12425,
    "h": 298.6
  },
  "luminance": 0.05189
}

Semantic roles & 50–950 ramp

primary
#4E307C
secondary
#8CAA5E
accent
#D454A1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E307C

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

Preview Lab → · Contrast checker → · Palette generator →

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