#4A1F87#4A1F87

#4A1F87 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.160 H 296.3°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#4A1F87
RGBrgb(74, 31, 135)
HSLhsl(265, 63%, 33%)
HSVhsv(265, 77%, 53%)
CMYKcmyk(45.2%, 77%, 0%, 47.1%)
CIE-LABlab(24.27, 42.62, -50.22)
CIE-LCHlch(24.27, 65.87, 310.32°)
OKLaboklab(36.64% 0.0711 -0.1438)
OKLCHoklch(36.64% 0.16 296.3)
XYZxyz(7.6860, 4.1849, 23.3198)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F87 #5C871F
analogous
#1F2887 #4A1F87 #7E1F87
triadic
#4A1F87 #874A1F #1F874A
tetradic
#4A1F87 #871F28 #5C871F #1F877E
square
#4A1F87 #871F28 #5C871F #1F877E
split-complementary
#4A1F87 #877E1F #28871F
monochromatic
#130823 #2F1455 #4A1F87 #652AB9 #844BD6

Accessibility & contrast

On white

11.43
#4A1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4A1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F87
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F87#FFFFFF#000000##FFFFFF
##4A1F871.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#393B52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a1f87;
/* rgb */ color: rgb(74, 31, 135);
/* oklch */ color: oklch(36.6% 0.160 296.3);
Tailwind
colors: {
  custom: {
    50: '#835fab',
    500: '#4a1f87',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f87;
$custom-light: #835fab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f87",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 264.808,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36638,
    "c": 0.16043,
    "h": 296.3
  },
  "luminance": 0.04185
}

Semantic roles & 50–950 ramp

primary
#4A1F87
secondary
#8AB84A
accent
#E642A2
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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