#4A187C#4A187C

#4A187C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.156 H 301.1°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#4A187C
RGBrgb(74, 24, 124)
HSLhsl(270, 68%, 29%)
HSVhsv(270, 81%, 49%)
CMYKcmyk(40.3%, 80.6%, 0%, 51.4%)
CIE-LABlab(22.18, 42.90, -46.71)
CIE-LCHlch(22.18, 63.42, 312.56°)
OKLaboklab(34.86% 0.0804 -0.1334)
OKLCHoklch(34.86% 0.156 301.1)
XYZxyz(6.7879, 3.5643, 19.3952)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A187C #4A7C18
analogous
#18187C #4A187C #7C187C
triadic
#4A187C #7C4A18 #187C4A
tetradic
#4A187C #7C1818 #4A7C18 #187C7C
square
#4A187C #7C1818 #4A7C18 #187C7C
split-complementary
#4A187C #7C7C18 #187C18
monochromatic
#0F051A #2B0E49 #4A187C #6922AF #8736D8

Accessibility & contrast

On white

12.26
#4A187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4A187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A187C
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A187C#FFFFFF#000000##FFFFFF
##4A187C1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#3F334A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a187c;
/* rgb */ color: rgb(74, 24, 124);
/* oklch */ color: oklch(34.9% 0.156 301.1);
Tailwind
colors: {
  custom: {
    50: '#825ba3',
    500: '#4a187c',
    950: '#000000',
  },
}
SCSS
$custom: #4a187c;
$custom-light: #825ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a187c",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 270,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3486,
    "c": 0.15581,
    "h": 301.1
  },
  "luminance": 0.03564
}

Semantic roles & 50–950 ramp

primary
#4A187C
secondary
#78B13F
accent
#EA3D94
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A187C

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

Preview Lab → · Contrast checker → · Palette generator →

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