#4A187E#4A187E

#4A187E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.158 H 300.4°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#4A187E
RGBrgb(74, 24, 126)
HSLhsl(269, 68%, 29%)
HSVhsv(269, 81%, 49%)
CMYKcmyk(41.3%, 81%, 0%, 50.6%)
CIE-LABlab(22.36, 43.41, -47.69)
CIE-LCHlch(22.36, 64.48, 312.31°)
OKLaboklab(35.04% 0.0798 -0.1363)
OKLCHoklch(35.04% 0.158 300.4)
XYZxyz(6.9156, 3.6154, 20.0681)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A187E #4C7E18
analogous
#18197E #4A187E #7D187E
triadic
#4A187E #7E4A18 #187E4A
tetradic
#4A187E #7E1819 #4C7E18 #187E7D
square
#4A187E #7E1819 #4C7E18 #187E7D
split-complementary
#4A187E #7E7D18 #197E18
monochromatic
#0F051A #2C0E4B #4A187E #6822B1 #8737D9

Accessibility & contrast

On white

12.19
#4A187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4A187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A187E
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A187E#FFFFFF#000000##FFFFFF
##4A187E1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#3E344B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a187e;
/* rgb */ color: rgb(74, 24, 126);
/* oklch */ color: oklch(35.0% 0.158 300.4);
Tailwind
colors: {
  custom: {
    50: '#825ba4',
    500: '#4a187e',
    950: '#000000',
  },
}
SCSS
$custom: #4a187e;
$custom-light: #825ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a187e",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 269.412,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35043,
    "c": 0.15796,
    "h": 300.4
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#4A187E
secondary
#7AB23F
accent
#EB3D96
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A187E

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

Preview Lab → · Contrast checker → · Palette generator →

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