#4A198E#4A198E

#4A198E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.174 H 295.1°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#4A198E
RGBrgb(74, 25, 142)
HSLhsl(265, 70%, 33%)
HSVhsv(265, 82%, 56%)
CMYKcmyk(47.9%, 82.4%, 0%, 44.3%)
CIE-LABlab(24.01, 47.14, -55.02)
CIE-LCHlch(24.01, 72.45, 310.59°)
OKLaboklab(36.66% 0.0739 -0.1578)
OKLCHoklch(36.66% 0.174 295.1)
XYZxyz(8.0528, 4.1039, 25.9538)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A198E #5D8E19
analogous
#19238E #4A198E #84198E
triadic
#4A198E #8E4A19 #198E4A
tetradic
#4A198E #8E1923 #5D8E19 #198E84
square
#4A198E #8E1923 #5D8E19 #198E84
split-complementary
#4A198E #8E8419 #238E19
monochromatic
#140726 #2F105A #4A198E #6522C2 #8443DE

Accessibility & contrast

On white

11.53
#4A198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A198E
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A198E#FFFFFF#000000##FFFFFF
##4A198E1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#363B54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a198e;
/* rgb */ color: rgb(74, 25, 142);
/* oklch */ color: oklch(36.7% 0.174 295.1);
Tailwind
colors: {
  custom: {
    50: '#845db0',
    500: '#4a198e',
    950: '#000000',
  },
}
SCSS
$custom: #4a198e;
$custom-light: #845db0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a198e",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 265.128,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36656,
    "c": 0.17427,
    "h": 295.1
  },
  "luminance": 0.04104
}

Semantic roles & 50–950 ramp

primary
#4A198E
secondary
#8BBF44
accent
#ED3BA2
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4A198E

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

Preview Lab → · Contrast checker → · Palette generator →

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