#4A1789#4A1789

#4A1789 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.171 H 296.8°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#4A1789
RGBrgb(74, 23, 137)
HSLhsl(267, 71%, 31%)
HSVhsv(267, 83%, 54%)
CMYKcmyk(46%, 83.2%, 0%, 46.3%)
CIE-LABlab(23.25, 46.64, -53.15)
CIE-LCHlch(23.25, 70.71, 311.27°)
OKLaboklab(35.98% 0.0771 -0.1523)
OKLCHoklch(35.98% 0.171 296.8)
XYZxyz(7.6446, 3.8746, 24.0072)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1789 #568917
analogous
#171D89 #4A1789 #831789
triadic
#4A1789 #894A17 #17894A
tetradic
#4A1789 #89171D #568917 #178983
square
#4A1789 #89171D #568917 #178983
split-complementary
#4A1789 #898317 #1D8917
monochromatic
#110520 #2E0E55 #4A1789 #6620BD #853CDE

Accessibility & contrast

On white

11.83
#4A1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1789
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1789#FFFFFF#000000##FFFFFF
##4A17891.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1789;
/* rgb */ color: rgb(74, 23, 137);
/* oklch */ color: oklch(36.0% 0.171 296.8);
Tailwind
colors: {
  custom: {
    50: '#845cac',
    500: '#4a1789',
    950: '#000000',
  },
}
SCSS
$custom: #4a1789;
$custom-light: #845cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1789",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 266.842,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35983,
    "c": 0.17071,
    "h": 296.8
  },
  "luminance": 0.03875
}

Semantic roles & 50–950 ramp

primary
#4A1789
secondary
#85BD3F
accent
#EE3A9D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4A1789

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

Preview Lab → · Contrast checker → · Palette generator →

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