#4E197C#4E197C

#4E197C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.156 H 303.4°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#4E197C
RGBrgb(78, 25, 124)
HSLhsl(272, 66%, 29%)
HSVhsv(272, 80%, 49%)
CMYKcmyk(37.1%, 79.8%, 0%, 51.4%)
CIE-LABlab(22.90, 43.18, -45.51)
CIE-LCHlch(22.90, 62.74, 313.50°)
OKLaboklab(35.49% 0.0857 -0.1298)
OKLCHoklch(35.49% 0.156 303.4)
XYZxyz(7.1268, 3.7702, 19.4171)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E197C #477C19
analogous
#1C197C #4E197C #7C1979
triadic
#4E197C #7C4E19 #197C4E
tetradic
#4E197C #7C1C19 #477C19 #19797C
square
#4E197C #7C1C19 #477C19 #19797C
split-complementary
#4E197C #797C19 #197C1C
monochromatic
#100519 #2E0F49 #4E197C #6E23AF #8D38D7

Accessibility & contrast

On white

11.97
#4E197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4E197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E197C
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E197C#FFFFFF#000000##FFFFFF
##4E197C1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#45334A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e197c;
/* rgb */ color: rgb(78, 25, 124);
/* oklch */ color: oklch(35.5% 0.156 303.4);
Tailwind
colors: {
  custom: {
    50: '#855ca3',
    500: '#4e197c',
    950: '#000000',
  },
}
SCSS
$custom: #4e197c;
$custom-light: #855ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e197c",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 272.121,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35488,
    "c": 0.15553,
    "h": 303.4
  },
  "luminance": 0.0377
}

Semantic roles & 50–950 ramp

primary
#4E197C
secondary
#74B040
accent
#E93E8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E197C

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

Preview Lab → · Contrast checker → · Palette generator →

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