#4A187D#4A187D

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

Color values

HEX#4A187D
RGBrgb(74, 24, 125)
HSLhsl(270, 68%, 29%)
HSVhsv(270, 81%, 49%)
CMYKcmyk(40.8%, 80.8%, 0%, 51%)
CIE-LABlab(22.27, 43.15, -47.20)
CIE-LCHlch(22.27, 63.95, 312.43°)
OKLaboklab(34.95% 0.0801 -0.1349)
OKLCHoklch(34.95% 0.157 300.7)
XYZxyz(6.8514, 3.5897, 19.7300)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A187D #4B7D18
analogous
#18197D #4A187D #7D187D
triadic
#4A187D #7D4A18 #187D4A
tetradic
#4A187D #7D1819 #4B7D18 #187D7D
square
#4A187D #7D1819 #4B7D18 #187D7D
split-complementary
#4A187D #7D7D18 #197D18
monochromatic
#0F051A #2C0E4A #4A187D #6822B0 #8737D9

Accessibility & contrast

On white

12.22
#4A187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A187D
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A187D#FFFFFF#000000##FFFFFF
##4A187D1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#3E334A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a187d;
/* rgb */ color: rgb(74, 24, 125);
/* oklch */ color: oklch(35.0% 0.157 300.7);
Tailwind
colors: {
  custom: {
    50: '#825ba3',
    500: '#4a187d',
    950: '#000000',
  },
}
SCSS
$custom: #4a187d;
$custom-light: #825ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a187d",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 269.703,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34952,
    "c": 0.15689,
    "h": 300.7
  },
  "luminance": 0.0359
}

Semantic roles & 50–950 ramp

primary
#4A187D
secondary
#79B23F
accent
#EB3D95
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A187D

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

Preview Lab → · Contrast checker → · Palette generator →

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