#4A137D#4A137D

#4A137D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.162 H 301.4°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#4A137D
RGBrgb(74, 19, 125)
HSLhsl(271, 74%, 28%)
HSVhsv(271, 85%, 49%)
CMYKcmyk(40.8%, 84.8%, 0%, 51%)
CIE-LABlab(21.59, 45.12, -48.31)
CIE-LCHlch(21.59, 66.10, 313.05°)
OKLaboklab(34.48% 0.0842 -0.1381)
OKLCHoklch(34.48% 0.162 301.4)
XYZxyz(6.7577, 3.4022, 19.6987)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A137D #467D13
analogous
#15137D #4A137D #7D137B
triadic
#4A137D #7D4A13 #137D4A
tetradic
#4A137D #7D1513 #467D13 #137B7D
square
#4A137D #7D1513 #467D13 #137B7D
split-complementary
#4A137D #7B7D13 #137D15
monochromatic
#10041B #2B0B48 #4A137D #691BB2 #892CDF

Accessibility & contrast

On white

12.50
#4A137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4A137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A137D
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A137D#FFFFFF#000000##FFFFFF
##4A137D1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#3E3149
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a137d;
/* rgb */ color: rgb(74, 19, 125);
/* oklch */ color: oklch(34.5% 0.162 301.4);
Tailwind
colors: {
  custom: {
    50: '#8259a4',
    500: '#4a137d',
    950: '#000000',
  },
}
SCSS
$custom: #4a137d;
$custom-light: #8259a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a137d",
  "rgb": {
    "r": 74,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 271.132,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3448,
    "c": 0.16171,
    "h": 301.4
  },
  "luminance": 0.03402
}

Semantic roles & 50–950 ramp

primary
#4A137D
secondary
#74B339
accent
#F03890
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A137D

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

Preview Lab → · Contrast checker → · Palette generator →

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