#4A1F8F#4A1F8F

#4A1F8F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.170 H 294.0°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#4A1F8F
RGBrgb(74, 31, 143)
HSLhsl(263, 64%, 34%)
HSVhsv(263, 78%, 56%)
CMYKcmyk(48.3%, 78.3%, 0%, 43.9%)
CIE-LABlab(25.01, 44.80, -54.00)
CIE-LCHlch(25.01, 70.17, 309.68°)
OKLaboklab(37.38% 0.0689 -0.1549)
OKLCHoklch(37.38% 0.17 294)
XYZxyz(8.2706, 4.4187, 26.3984)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F8F #648F1F
analogous
#1F2C8F #4A1F8F #821F8F
triadic
#4A1F8F #8F4A1F #1F8F4A
tetradic
#4A1F8F #8F1F2C #648F1F #1F8F82
square
#4A1F8F #8F1F2C #648F1F #1F8F82
split-complementary
#4A1F8F #8F821F #2C8F1F
monochromatic
#16092A #30145D #4A1F8F #642AC1 #844FD9

Accessibility & contrast

On white

11.15
#4A1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4A1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F8F
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F8F#FFFFFF#000000##FFFFFF
##4A1F8F1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#353E56
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4a1f8f;
/* rgb */ color: rgb(74, 31, 143);
/* oklch */ color: oklch(37.4% 0.170 294.0);
Tailwind
colors: {
  custom: {
    50: '#8460b1',
    500: '#4a1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f8f;
$custom-light: #8460b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f8f",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 263.036,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37381,
    "c": 0.16953,
    "h": 294
  },
  "luminance": 0.04419
}

Semantic roles & 50–950 ramp

primary
#4A1F8F
secondary
#92BC4E
accent
#E740A7
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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