#4A197E#4A197E

#4A197E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.157 H 300.2°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#4A197E
RGBrgb(74, 25, 126)
HSLhsl(269, 67%, 30%)
HSVhsv(269, 80%, 49%)
CMYKcmyk(41.3%, 80.2%, 0%, 50.6%)
CIE-LABlab(22.50, 42.98, -47.44)
CIE-LCHlch(22.50, 64.02, 312.17°)
OKLaboklab(35.15% 0.079 -0.1356)
OKLCHoklch(35.15% 0.157 300.2)
XYZxyz(6.9366, 3.6574, 20.0751)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A197E #4D7E19
analogous
#191B7E #4A197E #7D197E
triadic
#4A197E #7E4A19 #197E4A
tetradic
#4A197E #7E191B #4D7E19 #197E7D
square
#4A197E #7E191B #4D7E19 #197E7D
split-complementary
#4A197E #7E7D19 #1B7E19
monochromatic
#0F051A #2C0F4B #4A197E #6823B1 #863AD8

Accessibility & contrast

On white

12.13
#4A197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4A197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A197E
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A197E#FFFFFF#000000##FFFFFF
##4A197E1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#3E344B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a197e;
/* rgb */ color: rgb(74, 25, 126);
/* oklch */ color: oklch(35.1% 0.157 300.2);
Tailwind
colors: {
  custom: {
    50: '#825ca4',
    500: '#4a197e',
    950: '#000000',
  },
}
SCSS
$custom: #4a197e;
$custom-light: #825ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a197e",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 269.109,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35146,
    "c": 0.15692,
    "h": 300.2
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

primary
#4A197E
secondary
#7BB241
accent
#EA3E96
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A197E

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

Preview Lab → · Contrast checker → · Palette generator →

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