#4A108D#4A108D

#4A108D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.8% C 0.180 H 296.3°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#4A108D
RGBrgb(74, 16, 141)
HSLhsl(268, 80%, 31%)
HSVhsv(268, 89%, 55%)
CMYKcmyk(47.5%, 88.7%, 0%, 44.7%)
CIE-LABlab(22.82, 50.08, -56.35)
CIE-LCHlch(22.82, 75.39, 311.63°)
OKLaboklab(35.81% 0.08 -0.1616)
OKLCHoklch(35.81% 0.18 296.3)
XYZxyz(7.8158, 3.7493, 25.5060)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A108D #538D10
analogous
#10148D #4A108D #88108D
triadic
#4A108D #8D4A10 #108D4A
tetradic
#4A108D #8D1014 #538D10 #108D88
square
#4A108D #8D1014 #538D10 #108D88
split-complementary
#4A108D #8D8810 #148D10
monochromatic
#10041F #2D0A56 #4A108D #6716C4 #8530E7

Accessibility & contrast

On white

12.00
#4A108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4A108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A108D
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A108D#FFFFFF#000000##FFFFFF
##4A108D1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#373752
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a108d;
/* rgb */ color: rgb(74, 16, 141);
/* oklch */ color: oklch(35.8% 0.180 296.3);
Tailwind
colors: {
  custom: {
    50: '#8559af',
    500: '#4a108d',
    950: '#000000',
  },
}
SCSS
$custom: #4a108d;
$custom-light: #8559af;
$custom-dark: #000000;
JSON
{
  "hex": "#4a108d",
  "rgb": {
    "r": 74,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 267.84,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35809,
    "c": 0.18034,
    "h": 296.3
  },
  "luminance": 0.0375
}

Semantic roles & 50–950 ramp

primary
#4A108D
secondary
#81C237
accent
#F6329B
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4A108D

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

Preview Lab → · Contrast checker → · Palette generator →

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