#4A1F82#4A1F82

#4A1F82 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.155 H 297.9°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#4A1F82
RGBrgb(74, 31, 130)
HSLhsl(266, 61%, 32%)
HSVhsv(266, 76%, 51%)
CMYKcmyk(43.1%, 76.2%, 0%, 49%)
CIE-LABlab(23.83, 41.27, -47.81)
CIE-LCHlch(23.83, 63.16, 310.80°)
OKLaboklab(36.19% 0.0724 -0.1367)
OKLCHoklch(36.19% 0.155 297.9)
XYZxyz(7.3422, 4.0474, 21.5092)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F82 #57821F
analogous
#1F2582 #4A1F82 #7C1F82
triadic
#4A1F82 #824A1F #1F824A
tetradic
#4A1F82 #821F25 #57821F #1F827C
square
#4A1F82 #821F25 #57821F #1F827C
split-complementary
#4A1F82 #827C1F #25821F
monochromatic
#12071F #2E1351 #4A1F82 #662BB3 #8548D3

Accessibility & contrast

On white

11.60
#4A1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4A1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F82
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F82#FFFFFF#000000##FFFFFF
##4A1F821.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#3C394F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a1f82;
/* rgb */ color: rgb(74, 31, 130);
/* oklch */ color: oklch(36.2% 0.155 297.9);
Tailwind
colors: {
  custom: {
    50: '#825fa7',
    500: '#4a1f82',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f82;
$custom-light: #825fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f82",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 266.061,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36186,
    "c": 0.15471,
    "h": 297.9
  },
  "luminance": 0.04048
}

Semantic roles & 50–950 ramp

primary
#4A1F82
secondary
#86B548
accent
#E5439E
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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