#4A198B#4A198B

#4A198B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.171 H 296.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#4A198B
RGBrgb(74, 25, 139)
HSLhsl(266, 70%, 32%)
HSVhsv(266, 82%, 55%)
CMYKcmyk(46.8%, 82%, 0%, 45.5%)
CIE-LABlab(23.72, 46.35, -53.63)
CIE-LCHlch(23.72, 70.89, 310.84°)
OKLaboklab(36.37% 0.0749 -0.1537)
OKLCHoklch(36.37% 0.171 296)
XYZxyz(7.8306, 4.0150, 24.7835)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A198B #5A8B19
analogous
#19218B #4A198B #83198B
triadic
#4A198B #8B4A19 #198B4A
tetradic
#4A198B #8B1921 #5A8B19 #198B83
square
#4A198B #8B1921 #5A8B19 #198B83
split-complementary
#4A198B #8B8319 #218B19
monochromatic
#130623 #2E1057 #4A198B #6622BF #8441DD

Accessibility & contrast

On white

11.65
#4A198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4A198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A198B
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A198B#FFFFFF#000000##FFFFFF
##4A198B1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#383A53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a198b;
/* rgb */ color: rgb(74, 25, 139);
/* oklch */ color: oklch(36.4% 0.171 296.0);
Tailwind
colors: {
  custom: {
    50: '#845dae',
    500: '#4a198b',
    950: '#000000',
  },
}
SCSS
$custom: #4a198b;
$custom-light: #845dae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a198b",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 265.789,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36366,
    "c": 0.17103,
    "h": 296
  },
  "luminance": 0.04015
}

Semantic roles & 50–950 ramp

primary
#4A198B
secondary
#89BE42
accent
#EC3BA0
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4A198B

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

Preview Lab → · Contrast checker → · Palette generator →

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