#4A107F#4A107F

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

Color values

HEX#4A107F
RGBrgb(74, 16, 127)
HSLhsl(271, 78%, 28%)
HSVhsv(271, 87%, 50%)
CMYKcmyk(41.7%, 87.4%, 0%, 50.2%)
CIE-LABlab(21.43, 46.64, -49.84)
CIE-LCHlch(21.43, 68.26, 313.10°)
OKLaboklab(34.43% 0.0855 -0.1426)
OKLCHoklch(34.43% 0.166 301)
XYZxyz(6.8391, 3.3587, 20.3625)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A107F #457F10
analogous
#12107F #4A107F #7F107C
triadic
#4A107F #7F4A10 #107F4A
tetradic
#4A107F #7F1210 #457F10 #107C7F
square
#4A107F #7F1210 #457F10 #107C7F
split-complementary
#4A107F #7C7F10 #107F12
monochromatic
#10031B #2A0949 #4A107F #6A17B5 #8926E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A107F#FFFFFF#000000##FFFFFF
##4A107F1.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)
#003382
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#3E314A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4a107f;
/* rgb */ color: rgb(74, 16, 127);
/* oklch */ color: oklch(34.4% 0.166 301.0);
Tailwind
colors: {
  custom: {
    50: '#8358a5',
    500: '#4a107f',
    950: '#000000',
  },
}
SCSS
$custom: #4a107f;
$custom-light: #8358a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a107f",
  "rgb": {
    "r": 74,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 271.351,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34427,
    "c": 0.16624,
    "h": 301
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#4A107F
secondary
#73B536
accent
#F43490
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A107F

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

Preview Lab → · Contrast checker → · Palette generator →

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