#4A1161#4A1161

#4A1161 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.135 H 313.8°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#4A1161
RGBrgb(74, 17, 97)
HSLhsl(283, 70%, 22%)
HSVhsv(283, 82%, 38%)
CMYKcmyk(23.7%, 82.5%, 0%, 62%)
CIE-LABlab(18.89, 39.22, -34.55)
CIE-LCHlch(18.89, 52.27, 318.62°)
OKLaboklab(31.83% 0.0936 -0.0977)
OKLCHoklch(31.83% 0.135 313.8)
XYZxyz(5.1818, 2.7200, 11.5590)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1161 #286111
analogous
#221161 #4A1161 #611150
triadic
#4A1161 #614A11 #11614A
tetradic
#4A1161 #612211 #286111 #115061
square
#4A1161 #612211 #286111 #115061
split-complementary
#4A1161 #506111 #116122
monochromatic
#14051A #22082D #4A1161 #721A95 #9923C9

Accessibility & contrast

On white

13.60
#4A1161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4A1161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1161
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1161#FFFFFF#000000##FFFFFF
##4A11611.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B63
Deuteranopia (green-blind)
#092F5F
Tritanopia (blue-blind)
#482439
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4a1161;
/* rgb */ color: rgb(74, 17, 97);
/* oklch */ color: oklch(31.8% 0.135 313.8);
Tailwind
colors: {
  custom: {
    50: '#80578e',
    500: '#4a1161',
    950: '#000000',
  },
}
SCSS
$custom: #4a1161;
$custom-light: #80578e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1161",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 282.75,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31834,
    "c": 0.13529,
    "h": 313.8
  },
  "luminance": 0.0272
}

Semantic roles & 50–950 ramp

primary
#4A1161
secondary
#519934
accent
#ED3B6E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4A1161

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

Preview Lab → · Contrast checker → · Palette generator →

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