#4A1F8A#4A1F8A

#4A1F8A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.164 H 295.4°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#4A1F8A
RGBrgb(74, 31, 138)
HSLhsl(264, 63%, 33%)
HSVhsv(264, 78%, 54%)
CMYKcmyk(46.4%, 77.5%, 0%, 45.9%)
CIE-LABlab(24.55, 43.44, -51.65)
CIE-LCHlch(24.55, 67.49, 310.06°)
OKLaboklab(36.91% 0.0703 -0.148)
OKLCHoklch(36.91% 0.164 295.4)
XYZxyz(7.9002, 4.2706, 24.4479)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F8A #5F8A1F
analogous
#1F298A #4A1F8A #7F1F8A
triadic
#4A1F8A #8A4A1F #1F8A4A
tetradic
#4A1F8A #8A1F29 #5F8A1F #1F8A7F
square
#4A1F8A #8A1F29 #5F8A1F #1F8A7F
split-complementary
#4A1F8A #8A7F1F #298A1F
monochromatic
#140926 #2F1458 #4A1F8A #652ABC #844CD7

Accessibility & contrast

On white

11.33
#4A1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4A1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F8A
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F8A#FFFFFF#000000##FFFFFF
##4A1F8A1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#383C53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a1f8a;
/* rgb */ color: rgb(74, 31, 138);
/* oklch */ color: oklch(36.9% 0.164 295.4);
Tailwind
colors: {
  custom: {
    50: '#8360ad',
    500: '#4a1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f8a;
$custom-light: #8360ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f8a",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 264.112,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36914,
    "c": 0.16385,
    "h": 295.4
  },
  "luminance": 0.04271
}

Semantic roles & 50–950 ramp

primary
#4A1F8A
secondary
#8DBA4B
accent
#E641A4
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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