#4A1788#4A1788

#4A1788 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.170 H 297.2°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#4A1788
RGBrgb(74, 23, 136)
HSLhsl(267, 71%, 31%)
HSVhsv(267, 83%, 53%)
CMYKcmyk(45.6%, 83.1%, 0%, 46.7%)
CIE-LABlab(23.16, 46.38, -52.68)
CIE-LCHlch(23.16, 70.19, 311.36°)
OKLaboklab(35.89% 0.0774 -0.1509)
OKLCHoklch(35.89% 0.17 297.2)
XYZxyz(7.5732, 3.8461, 23.6311)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1788 #558817
analogous
#171C88 #4A1788 #821788
triadic
#4A1788 #884A17 #17884A
tetradic
#4A1788 #88171C #558817 #178882
square
#4A1788 #88171C #558817 #178882
split-complementary
#4A1788 #888217 #1C8817
monochromatic
#11051F #2E0E54 #4A1788 #6620BC #853BDE

Accessibility & contrast

On white

11.87
#4A1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4A1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1788
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1788#FFFFFF#000000##FFFFFF
##4A17881.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003686
Tritanopia (blue-blind)
#393850
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a1788;
/* rgb */ color: rgb(74, 23, 136);
/* oklch */ color: oklch(35.9% 0.170 297.2);
Tailwind
colors: {
  custom: {
    50: '#845cac',
    500: '#4a1788',
    950: '#000000',
  },
}
SCSS
$custom: #4a1788;
$custom-light: #845cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1788",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 267.08,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35886,
    "c": 0.16965,
    "h": 297.2
  },
  "luminance": 0.03846
}

Semantic roles & 50–950 ramp

primary
#4A1788
secondary
#83BC3F
accent
#EE3A9D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4A1788

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

Preview Lab → · Contrast checker → · Palette generator →

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