#4A117E#4A117E

#4A117E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.164 H 301.2°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#4A117E
RGBrgb(74, 17, 126)
HSLhsl(271, 76%, 28%)
HSVhsv(271, 87%, 49%)
CMYKcmyk(41.3%, 86.5%, 0%, 50.6%)
CIE-LABlab(21.44, 46.07, -49.18)
CIE-LCHlch(21.44, 67.39, 313.13°)
OKLaboklab(34.41% 0.0852 -0.1406)
OKLCHoklch(34.41% 0.164 301.2)
XYZxyz(6.7895, 3.3631, 20.0261)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A117E #457E11
analogous
#13117E #4A117E #7E117B
triadic
#4A117E #7E4A11 #117E4A
tetradic
#4A117E #7E1311 #457E11 #117B7E
square
#4A117E #7E1311 #457E11 #117B7E
split-complementary
#4A117E #7B7E11 #117E13
monochromatic
#10041B #2A0A48 #4A117E #6A18B4 #8927E2

Accessibility & contrast

On white

12.56
#4A117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4A117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A117E
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A117E#FFFFFF#000000##FFFFFF
##4A117E1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#3E314A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4a117e;
/* rgb */ color: rgb(74, 17, 126);
/* oklch */ color: oklch(34.4% 0.164 301.2);
Tailwind
colors: {
  custom: {
    50: '#8358a4',
    500: '#4a117e',
    950: '#000000',
  },
}
SCSS
$custom: #4a117e;
$custom-light: #8358a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a117e",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 271.376,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34409,
    "c": 0.16444,
    "h": 301.2
  },
  "luminance": 0.03363
}

Semantic roles & 50–950 ramp

primary
#4A117E
secondary
#73B437
accent
#F33590
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A117E

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

Preview Lab → · Contrast checker → · Palette generator →

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