#4A1172#4A1172

#4A1172 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.152 H 305.9°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#4A1172
RGBrgb(74, 17, 114)
HSLhsl(275, 74%, 26%)
HSVhsv(275, 85%, 45%)
CMYKcmyk(35.1%, 85.1%, 0%, 55.3%)
CIE-LABlab(20.33, 43.17, -43.32)
CIE-LCHlch(20.33, 61.16, 314.90°)
OKLaboklab(33.3% 0.0893 -0.1234)
OKLCHoklch(33.3% 0.152 305.9)
XYZxyz(6.0611, 3.0717, 16.1899)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1172 #397211
analogous
#1A1172 #4A1172 #721169
triadic
#4A1172 #724A11 #11724A
tetradic
#4A1172 #721A11 #397211 #116972
square
#4A1172 #721A11 #397211 #116972
split-complementary
#4A1172 #697211 #11721A
monochromatic
#11041B #27093D #4A1172 #6D19A7 #8F21DD

Accessibility & contrast

On white

13.01
#4A1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4A1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1172
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1172#FFFFFF#000000##FFFFFF
##4A11721.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#432C43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a1172;
/* rgb */ color: rgb(74, 17, 114);
/* oklch */ color: oklch(33.3% 0.152 305.9);
Tailwind
colors: {
  custom: {
    50: '#81589b',
    500: '#4a1172',
    950: '#000000',
  },
}
SCSS
$custom: #4a1172;
$custom-light: #81589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1172",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 275.258,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33295,
    "c": 0.15231,
    "h": 305.9
  },
  "luminance": 0.03072
}

Semantic roles & 50–950 ramp

primary
#4A1172
secondary
#65A936
accent
#F13784
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1172

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

Preview Lab → · Contrast checker → · Palette generator →

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