#4A1173#4A1173

#4A1173 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.153 H 305.5°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#4A1173
RGBrgb(74, 17, 115)
HSLhsl(275, 74%, 26%)
HSVhsv(275, 85%, 45%)
CMYKcmyk(35.7%, 85.2%, 0%, 54.9%)
CIE-LABlab(20.42, 43.41, -43.82)
CIE-LCHlch(20.42, 61.68, 314.73°)
OKLaboklab(33.39% 0.0889 -0.1249)
OKLCHoklch(33.39% 0.153 305.5)
XYZxyz(6.1183, 3.0946, 16.4913)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1173 #3A7311
analogous
#191173 #4A1173 #73116B
triadic
#4A1173 #734A11 #11734A
tetradic
#4A1173 #731911 #3A7311 #116B73
square
#4A1173 #731911 #3A7311 #116B73
split-complementary
#4A1173 #6B7311 #117319
monochromatic
#11041B #28093E #4A1173 #6C19A8 #8F21DE

Accessibility & contrast

On white

12.97
#4A1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4A1173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1173
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1173#FFFFFF#000000##FFFFFF
##4A11731.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#422C43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a1173;
/* rgb */ color: rgb(74, 17, 115);
/* oklch */ color: oklch(33.4% 0.153 305.5);
Tailwind
colors: {
  custom: {
    50: '#81589c',
    500: '#4a1173',
    950: '#000000',
  },
}
SCSS
$custom: #4a1173;
$custom-light: #81589c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1173",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 274.898,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33385,
    "c": 0.15332,
    "h": 305.5
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#4A1173
secondary
#66AA36
accent
#F13785
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1173

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

Preview Lab → · Contrast checker → · Palette generator →

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