#4E197E#4E197E

#4E197E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.158 H 302.7°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#4E197E
RGBrgb(78, 25, 126)
HSLhsl(271, 67%, 30%)
HSVhsv(271, 80%, 49%)
CMYKcmyk(38.1%, 80.2%, 0%, 50.6%)
CIE-LABlab(23.07, 43.68, -46.49)
CIE-LCHlch(23.07, 63.79, 313.21°)
OKLaboklab(35.67% 0.0852 -0.1327)
OKLCHoklch(35.67% 0.158 302.7)
XYZxyz(7.2545, 3.8213, 20.0900)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E197E #497E19
analogous
#1C197E #4E197E #7E197C
triadic
#4E197E #7E4E19 #197E4E
tetradic
#4E197E #7E1C19 #497E19 #197C7E
square
#4E197E #7E1C19 #497E19 #197C7E
split-complementary
#4E197E #7C7E19 #197E1C
monochromatic
#10051A #2E0F4B #4E197E #6E23B1 #8D3AD8

Accessibility & contrast

On white

11.90
#4E197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4E197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E197E
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E197E#FFFFFF#000000##FFFFFF
##4E197E1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#44344B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e197e;
/* rgb */ color: rgb(78, 25, 126);
/* oklch */ color: oklch(35.7% 0.158 302.7);
Tailwind
colors: {
  custom: {
    50: '#855ca4',
    500: '#4e197e',
    950: '#000000',
  },
}
SCSS
$custom: #4e197e;
$custom-light: #855ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e197e",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 271.485,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35665,
    "c": 0.15765,
    "h": 302.7
  },
  "luminance": 0.03821
}

Semantic roles & 50–950 ramp

primary
#4E197E
secondary
#77B241
accent
#EA3E90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E197E

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

Preview Lab → · Contrast checker → · Palette generator →

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