#4A137F#4A137F

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

Color values

HEX#4A137F
RGBrgb(74, 19, 127)
HSLhsl(271, 74%, 29%)
HSVhsv(271, 85%, 50%)
CMYKcmyk(41.7%, 85%, 0%, 50.2%)
CIE-LABlab(21.78, 45.62, -49.27)
CIE-LCHlch(21.78, 67.14, 312.79°)
OKLaboklab(34.67% 0.0835 -0.1409)
OKLCHoklch(34.67% 0.164 300.6)
XYZxyz(6.8867, 3.4538, 20.3784)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A137F #487F13
analogous
#14137F #4A137F #7F137E
triadic
#4A137F #7F4A13 #137F4A
tetradic
#4A137F #7F1413 #487F13 #137E7F
square
#4A137F #7F1413 #487F13 #137E7F
split-complementary
#4A137F #7E7F13 #137F14
monochromatic
#10041B #2B0B4A #4A137F #691BB4 #882DE0

Accessibility & contrast

On white

12.42
#4A137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4A137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A137F
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A137F#FFFFFF#000000##FFFFFF
##4A137F1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#3E324A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a137f;
/* rgb */ color: rgb(74, 19, 127);
/* oklch */ color: oklch(34.7% 0.164 300.6);
Tailwind
colors: {
  custom: {
    50: '#8359a5',
    500: '#4a137f',
    950: '#000000',
  },
}
SCSS
$custom: #4a137f;
$custom-light: #8359a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a137f",
  "rgb": {
    "r": 74,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 270.556,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34669,
    "c": 0.16377,
    "h": 300.6
  },
  "luminance": 0.03454
}

Semantic roles & 50–950 ramp

primary
#4A137F
secondary
#76B439
accent
#F13792
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A137F

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

Preview Lab → · Contrast checker → · Palette generator →

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