#4A1895#4A1895

#4A1895 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.183 H 293.3°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#4A1895
RGBrgb(74, 24, 149)
HSLhsl(264, 72%, 34%)
HSVhsv(264, 84%, 58%)
CMYKcmyk(50.3%, 83.9%, 0%, 41.6%)
CIE-LABlab(24.57, 49.36, -58.43)
CIE-LCHlch(24.57, 76.49, 310.19°)
OKLaboklab(37.25% 0.0721 -0.1678)
OKLCHoklch(37.25% 0.183 293.3)
XYZxyz(8.5740, 4.2787, 28.8021)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1895 #639518
analogous
#182595 #4A1895 #891895
triadic
#4A1895 #954A18 #18954A
tetradic
#4A1895 #951825 #639518 #189589
square
#4A1895 #951825 #639518 #189589
split-complementary
#4A1895 #958918 #259518
monochromatic
#16072C #301060 #4A1895 #6420CA #8446E1

Accessibility & contrast

On white

11.32
#4A1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4A1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1895
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1895#FFFFFF#000000##FFFFFF
##4A18951.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003893
Tritanopia (blue-blind)
#323E58
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a1895;
/* rgb */ color: rgb(74, 24, 149);
/* oklch */ color: oklch(37.3% 0.183 293.3);
Tailwind
colors: {
  custom: {
    50: '#855db5',
    500: '#4a1895',
    950: '#000000',
  },
}
SCSS
$custom: #4a1895;
$custom-light: #855db5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1895",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 264,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37254,
    "c": 0.18265,
    "h": 293.3
  },
  "luminance": 0.04279
}

Semantic roles & 50–950 ramp

primary
#4A1895
secondary
#91C246
accent
#EF39A6
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A1895

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

Preview Lab → · Contrast checker → · Palette generator →

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