#4A1889#4A1889

#4A1889 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.170 H 296.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4A1889
RGBrgb(74, 24, 137)
HSLhsl(267, 70%, 32%)
HSVhsv(267, 82%, 54%)
CMYKcmyk(46%, 82.5%, 0%, 46.3%)
CIE-LABlab(23.39, 46.24, -52.92)
CIE-LCHlch(23.39, 70.28, 311.14°)
OKLaboklab(36.08% 0.0763 -0.1517)
OKLCHoklch(36.08% 0.17 296.7)
XYZxyz(7.6648, 3.9151, 24.0139)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1889 #578918
analogous
#181E89 #4A1889 #831889
triadic
#4A1889 #894A18 #18894A
tetradic
#4A1889 #89181E #578918 #188983
square
#4A1889 #89181E #578918 #188983
split-complementary
#4A1889 #898318 #1E8918
monochromatic
#120621 #2E0F55 #4A1889 #6621BD #853EDD

Accessibility & contrast

On white

11.78
#4A1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4A1889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1889
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1889#FFFFFF#000000##FFFFFF
##4A18891.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003687
Tritanopia (blue-blind)
#393851
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a1889;
/* rgb */ color: rgb(74, 24, 137);
/* oklch */ color: oklch(36.1% 0.170 296.7);
Tailwind
colors: {
  custom: {
    50: '#845cac',
    500: '#4a1889',
    950: '#000000',
  },
}
SCSS
$custom: #4a1889;
$custom-light: #845cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1889",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 266.549,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36077,
    "c": 0.1698,
    "h": 296.7
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

primary
#4A1889
secondary
#86BD40
accent
#ED3B9E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4A1889

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

Preview Lab → · Contrast checker → · Palette generator →

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