#4A1790#4A1790

#4A1790 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.178 H 294.8°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#4A1790
RGBrgb(74, 23, 144)
HSLhsl(265, 72%, 33%)
HSVhsv(265, 84%, 56%)
CMYKcmyk(48.6%, 84%, 0%, 43.5%)
CIE-LABlab(23.94, 48.44, -56.38)
CIE-LCHlch(23.94, 74.33, 310.67°)
OKLaboklab(36.67% 0.0746 -0.1618)
OKLCHoklch(36.67% 0.178 294.8)
XYZxyz(8.1631, 4.0820, 26.7380)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1790 #5D9017
analogous
#172190 #4A1790 #861790
triadic
#4A1790 #904A17 #17904A
tetradic
#4A1790 #901721 #5D9017 #179086
square
#4A1790 #901721 #5D9017 #179086
split-complementary
#4A1790 #908617 #219017
monochromatic
#140626 #2F0F5B #4A1790 #651FC5 #8441E1

Accessibility & contrast

On white

11.56
#4A1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1790
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1790#FFFFFF#000000##FFFFFF
##4A17901.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00378E
Tritanopia (blue-blind)
#353B55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a1790;
/* rgb */ color: rgb(74, 23, 144);
/* oklch */ color: oklch(36.7% 0.178 294.8);
Tailwind
colors: {
  custom: {
    50: '#855cb2',
    500: '#4a1790',
    950: '#000000',
  },
}
SCSS
$custom: #4a1790;
$custom-light: #855cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1790",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 265.289,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36667,
    "c": 0.17815,
    "h": 294.8
  },
  "luminance": 0.04082
}

Semantic roles & 50–950 ramp

primary
#4A1790
secondary
#8BC142
accent
#EF39A2
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4A1790

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

Preview Lab → · Contrast checker → · Palette generator →

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