#4A1168#4A1168

#4A1168 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.142 H 310.3°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#4A1168
RGBrgb(74, 17, 104)
HSLhsl(279, 72%, 24%)
HSVhsv(279, 84%, 41%)
CMYKcmyk(28.8%, 83.7%, 0%, 59.2%)
CIE-LABlab(19.46, 40.82, -38.23)
CIE-LCHlch(19.46, 55.93, 316.87°)
OKLaboklab(32.42% 0.0921 -0.1085)
OKLCHoklch(32.42% 0.142 310.3)
XYZxyz(5.5227, 2.8563, 13.3544)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1168 #2F6811
analogous
#1E1168 #4A1168 #68115A
triadic
#4A1168 #684A11 #11684A
tetradic
#4A1168 #681E11 #2F6811 #115A68
square
#4A1168 #681E11 #2F6811 #115A68
split-complementary
#4A1168 #5A6811 #11681E
monochromatic
#13041A #250833 #4A1168 #6F1A9D #9522D1

Accessibility & contrast

On white

13.37
#4A1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4A1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1168
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1168#FFFFFF#000000##FFFFFF
##4A11681.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#003066
Tritanopia (blue-blind)
#46273D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4a1168;
/* rgb */ color: rgb(74, 17, 104);
/* oklch */ color: oklch(32.4% 0.142 310.3);
Tailwind
colors: {
  custom: {
    50: '#805794',
    500: '#4a1168',
    950: '#000000',
  },
}
SCSS
$custom: #4a1168;
$custom-light: #805794;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1168",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 279.31,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32417,
    "c": 0.14226,
    "h": 310.3
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

primary
#4A1168
secondary
#5AA035
accent
#EF3978
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B030D
muted
#7C787E

Preview Lab

Preview with #4A1168

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

Preview Lab → · Contrast checker → · Palette generator →

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