#4A1785#4A1785

#4A1785 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.166 H 298.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#4A1785
RGBrgb(74, 23, 133)
HSLhsl(268, 71%, 31%)
HSVhsv(268, 83%, 52%)
CMYKcmyk(44.4%, 82.7%, 0%, 47.8%)
CIE-LABlab(22.87, 45.61, -51.27)
CIE-LCHlch(22.87, 68.62, 311.66°)
OKLaboklab(35.6% 0.0784 -0.1468)
OKLCHoklch(35.6% 0.166 298.1)
XYZxyz(7.3630, 3.7620, 22.5240)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1785 #528517
analogous
#171B85 #4A1785 #811785
triadic
#4A1785 #854A17 #17854A
tetradic
#4A1785 #85171B #528517 #178581
square
#4A1785 #85171B #528517 #178581
split-complementary
#4A1785 #858117 #1B8517
monochromatic
#10051D #2D0E51 #4A1785 #6720B9 #853ADD

Accessibility & contrast

On white

11.98
#4A1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4A1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1785
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1785#FFFFFF#000000##FFFFFF
##4A17851.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003583
Tritanopia (blue-blind)
#3B364F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a1785;
/* rgb */ color: rgb(74, 23, 133);
/* oklch */ color: oklch(35.6% 0.166 298.1);
Tailwind
colors: {
  custom: {
    50: '#835ba9',
    500: '#4a1785',
    950: '#000000',
  },
}
SCSS
$custom: #4a1785;
$custom-light: #835ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1785",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 267.818,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35599,
    "c": 0.16645,
    "h": 298.1
  },
  "luminance": 0.03762
}

Semantic roles & 50–950 ramp

primary
#4A1785
secondary
#80B93F
accent
#ED3B9A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4A1785

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

Preview Lab → · Contrast checker → · Palette generator →

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