#4A1162#4A1162

#4A1162 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.9% C 0.136 H 313.3°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#4A1162
RGBrgb(74, 17, 98)
HSLhsl(282, 70%, 23%)
HSVhsv(282, 83%, 38%)
CMYKcmyk(24.5%, 82.7%, 0%, 61.6%)
CIE-LABlab(18.97, 39.45, -35.08)
CIE-LCHlch(18.97, 52.79, 318.35°)
OKLaboklab(31.92% 0.0934 -0.0992)
OKLCHoklch(31.92% 0.136 313.3)
XYZxyz(5.2287, 2.7388, 11.8061)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1162 #296211
analogous
#211162 #4A1162 #621152
triadic
#4A1162 #624A11 #11624A
tetradic
#4A1162 #622111 #296211 #115262
square
#4A1162 #622111 #296211 #115262
split-complementary
#4A1162 #526211 #116221
monochromatic
#14051A #23082E #4A1162 #711A96 #9923CA

Accessibility & contrast

On white

13.57
#4A1162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4A1162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1162
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1162#FFFFFF#000000##FFFFFF
##4A11621.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B64
Deuteranopia (green-blind)
#072F60
Tritanopia (blue-blind)
#472439
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4a1162;
/* rgb */ color: rgb(74, 17, 98);
/* oklch */ color: oklch(31.9% 0.136 313.3);
Tailwind
colors: {
  custom: {
    50: '#80578f',
    500: '#4a1162',
    950: '#000000',
  },
}
SCSS
$custom: #4a1162;
$custom-light: #80578f;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1162",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 282.222,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.31916,
    "c": 0.13628,
    "h": 313.3
  },
  "luminance": 0.02739
}

Semantic roles & 50–950 ramp

primary
#4A1162
secondary
#539A34
accent
#ED3B70
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4A1162

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

Preview Lab → · Contrast checker → · Palette generator →

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