#4A1F85#4A1F85

#4A1F85 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.158 H 296.9°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#4A1F85
RGBrgb(74, 31, 133)
HSLhsl(265, 62%, 32%)
HSVhsv(265, 77%, 52%)
CMYKcmyk(44.4%, 76.7%, 0%, 47.8%)
CIE-LABlab(24.09, 42.08, -49.26)
CIE-LCHlch(24.09, 64.79, 310.51°)
OKLaboklab(36.46% 0.0716 -0.141)
OKLCHoklch(36.46% 0.158 296.9)
XYZxyz(7.5466, 4.1291, 22.5852)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F85 #5A851F
analogous
#1F2785 #4A1F85 #7D1F85
triadic
#4A1F85 #854A1F #1F854A
tetradic
#4A1F85 #851F27 #5A851F #1F857D
square
#4A1F85 #851F27 #5A851F #1F857D
split-complementary
#4A1F85 #857D1F #27851F
monochromatic
#130822 #2E1353 #4A1F85 #662BB7 #844AD5

Accessibility & contrast

On white

11.50
#4A1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4A1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F85
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F85#FFFFFF#000000##FFFFFF
##4A1F851.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003883
Tritanopia (blue-blind)
#3A3A50
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a1f85;
/* rgb */ color: rgb(74, 31, 133);
/* oklch */ color: oklch(36.5% 0.158 296.9);
Tailwind
colors: {
  custom: {
    50: '#835fa9',
    500: '#4a1f85',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f85;
$custom-light: #835fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f85",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 265.294,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36456,
    "c": 0.15814,
    "h": 296.9
  },
  "luminance": 0.04129
}

Semantic roles & 50–950 ramp

primary
#4A1F85
secondary
#89B749
accent
#E543A1
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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