#4E187B#4E187B

#4E187B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.156 H 304.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#4E187B
RGBrgb(78, 24, 123)
HSLhsl(273, 67%, 29%)
HSVhsv(273, 80%, 48%)
CMYKcmyk(36.6%, 80.5%, 0%, 51.8%)
CIE-LABlab(22.66, 43.35, -45.25)
CIE-LCHlch(22.66, 62.67, 313.77°)
OKLaboklab(35.3% 0.0869 -0.129)
OKLCHoklch(35.3% 0.156 304)
XYZxyz(7.0428, 3.7030, 19.0788)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E187B #457B18
analogous
#1C187B #4E187B #7B1877
triadic
#4E187B #7B4E18 #187B4E
tetradic
#4E187B #7B1C18 #457B18 #18777B
square
#4E187B #7B1C18 #457B18 #18777B
split-complementary
#4E187B #777B18 #187B1C
monochromatic
#10051A #2E0E48 #4E187B #6E22AE #8E36D8

Accessibility & contrast

On white

12.06
#4E187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4E187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E187B
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E187B#FFFFFF#000000##FFFFFF
##4E187B1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#453249
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e187b;
/* rgb */ color: rgb(78, 24, 123);
/* oklch */ color: oklch(35.3% 0.156 304.0);
Tailwind
colors: {
  custom: {
    50: '#855ca2',
    500: '#4e187b',
    950: '#000000',
  },
}
SCSS
$custom: #4e187b;
$custom-light: #855ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e187b",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 272.727,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35299,
    "c": 0.15554,
    "h": 304
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#4E187B
secondary
#72B03F
accent
#EA3E8C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E187B

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

Preview Lab → · Contrast checker → · Palette generator →

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