#4A187A#4A187A

#4A187A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.154 H 301.8°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#4A187A
RGBrgb(74, 24, 122)
HSLhsl(271, 67%, 29%)
HSVhsv(271, 80%, 48%)
CMYKcmyk(39.3%, 80.3%, 0%, 52.2%)
CIE-LABlab(22.00, 42.39, -45.73)
CIE-LCHlch(22.00, 62.35, 312.83°)
OKLaboklab(34.68% 0.081 -0.1306)
OKLCHoklch(34.68% 0.154 301.8)
XYZxyz(6.6627, 3.5142, 18.7359)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A187A #487A18
analogous
#19187A #4A187A #7A1879
triadic
#4A187A #7A4A18 #187A4A
tetradic
#4A187A #7A1918 #487A18 #18797A
square
#4A187A #7A1918 #487A18 #18797A
split-complementary
#4A187A #797A18 #187A19
monochromatic
#10051A #2B0E47 #4A187A #6922AD #8835D7

Accessibility & contrast

On white

12.33
#4A187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4A187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A187A
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A187A#FFFFFF#000000##FFFFFF
##4A187A1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#3F3249
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a187a;
/* rgb */ color: rgb(74, 24, 122);
/* oklch */ color: oklch(34.7% 0.154 301.8);
Tailwind
colors: {
  custom: {
    50: '#825ba1',
    500: '#4a187a',
    950: '#000000',
  },
}
SCSS
$custom: #4a187a;
$custom-light: #825ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a187a",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 270.612,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34679,
    "c": 0.15365,
    "h": 301.8
  },
  "luminance": 0.03514
}

Semantic roles & 50–950 ramp

primary
#4A187A
secondary
#76AF3F
accent
#EA3E92
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A187A

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

Preview Lab → · Contrast checker → · Palette generator →

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