#4A198D#4A198D

#4A198D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.173 H 295.4°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#4A198D
RGBrgb(74, 25, 141)
HSLhsl(265, 70%, 33%)
HSVhsv(265, 82%, 55%)
CMYKcmyk(47.5%, 82.3%, 0%, 44.7%)
CIE-LABlab(23.91, 46.88, -54.56)
CIE-LCHlch(23.91, 71.93, 310.67°)
OKLaboklab(36.56% 0.0742 -0.1565)
OKLCHoklch(36.56% 0.173 295.4)
XYZxyz(7.9781, 4.0740, 25.5601)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A198D #5C8D19
analogous
#19228D #4A198D #84198D
triadic
#4A198D #8D4A19 #198D4A
tetradic
#4A198D #8D1922 #5C8D19 #198D84
square
#4A198D #8D1922 #5C8D19 #198D84
split-complementary
#4A198D #8D8419 #228D19
monochromatic
#130725 #2F1059 #4A198D #6522C1 #8443DE

Accessibility & contrast

On white

11.57
#4A198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4A198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A198D
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A198D#FFFFFF#000000##FFFFFF
##4A198D1.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#373A54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a198d;
/* rgb */ color: rgb(74, 25, 141);
/* oklch */ color: oklch(36.6% 0.173 295.4);
Tailwind
colors: {
  custom: {
    50: '#845daf',
    500: '#4a198d',
    950: '#000000',
  },
}
SCSS
$custom: #4a198d;
$custom-light: #845daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a198d",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 265.345,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36559,
    "c": 0.17319,
    "h": 295.4
  },
  "luminance": 0.04074
}

Semantic roles & 50–950 ramp

primary
#4A198D
secondary
#8ABF43
accent
#ED3BA2
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4A198D

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

Preview Lab → · Contrast checker → · Palette generator →

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