#4A197F#4A197F

#4A197F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.158 H 299.9°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#4A197F
RGBrgb(74, 25, 127)
HSLhsl(269, 67%, 30%)
HSVhsv(269, 80%, 50%)
CMYKcmyk(41.7%, 80.3%, 0%, 50.2%)
CIE-LABlab(22.60, 43.24, -47.93)
CIE-LCHlch(22.60, 64.55, 312.05°)
OKLaboklab(35.24% 0.0787 -0.137)
OKLCHoklch(35.24% 0.158 299.9)
XYZxyz(7.0015, 3.6833, 20.4166)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A197F #4E7F19
analogous
#191B7F #4A197F #7D197F
triadic
#4A197F #7F4A19 #197F4A
tetradic
#4A197F #7F191B #4E7F19 #197F7D
square
#4A197F #7F191B #4E7F19 #197F7D
split-complementary
#4A197F #7F7D19 #1B7F19
monochromatic
#0F051A #2C0F4C #4A197F #6823B2 #863AD8

Accessibility & contrast

On white

12.09
#4A197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A197F
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A197F#FFFFFF#000000##FFFFFF
##4A197F1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#3D354C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a197f;
/* rgb */ color: rgb(74, 25, 127);
/* oklch */ color: oklch(35.2% 0.158 299.9);
Tailwind
colors: {
  custom: {
    50: '#825ca5',
    500: '#4a197f',
    950: '#000000',
  },
}
SCSS
$custom: #4a197f;
$custom-light: #825ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a197f",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 268.824,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35238,
    "c": 0.15802,
    "h": 299.9
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#4A197F
secondary
#7CB341
accent
#EA3E97
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A197F

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

Preview Lab → · Contrast checker → · Palette generator →

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